Stack: LIFO, the Stack is a deprecated interface we should use Deque interface. The implementation can use LinkedList or array push, pop, peek, size() ...
分类:
其他好文 时间:
2018-02-20 23:35:44
阅读次数:
248
PhotonServer官网:https://www.photonengine.com/en/OnPremise Photon Server是一款实时的Socket服务器和开发框架,快速、使用方便、容易扩展,服务端架构在Windows系统平台上,采用C#语言编写,Photon Server发布包括两 ...
分类:
其他好文 时间:
2018-02-20 12:24:26
阅读次数:
900
路由的基本概念:根据不同的访问路径调用不同的方法或者类fromwebobimportResponse,Request,decfromwsgiref.simple_serverimportmake_server,demo_appdefindex(request:Request):res=Response()res.body=‘index.html‘.encode()returnresdefshowp
分类:
其他好文 时间:
2018-02-19 21:50:45
阅读次数:
200
Lock,那是对synchronized的一种更为面向对象的替代,在原来的synchronized内部,我们可以调用object的wait与notify方法 condition一方面是对lock功能的补充(也就是说,你用了lock,为了保证线程的通信,就得用condition) 另一方面,synch ...
分类:
其他好文 时间:
2018-02-18 15:21:53
阅读次数:
206
1 Many sentences in English contain two clauses: a main clause and a "that" clause. The "that" clause contains "that" + S + V. The "that" clause is th ...
分类:
其他好文 时间:
2018-02-18 14:45:17
阅读次数:
171
出现这个报错的主要原因是 component lists rendered with v-for should have explicit keys 去官网看了下v-for,简单说就是有相同父元素的子元素要有一个唯一的key,这样才能避免渲染错误,具体解释如下图: ...
分类:
其他好文 时间:
2018-02-16 16:52:59
阅读次数:
775
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 3 - ...
分类:
其他好文 时间:
2018-02-14 23:39:23
阅读次数:
312
In some cases your application might need to upload large amounts of data, such as files. Obviously for a good UX we should provide the user some feed ...
分类:
数据库 时间:
2018-02-14 21:32:56
阅读次数:
261
1.题目描述 Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. 给一个数n,在线性时间内得出末尾0 ...
分类:
其他好文 时间:
2018-02-14 21:05:23
阅读次数:
162
1.题目描述 Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime ...
分类:
其他好文 时间:
2018-02-13 22:17:26
阅读次数:
157