为什么需要引入default方法 在Java7以前interface只能声明方法,而不能实现方法。 在Java8中这一情况有所改变,接口中引入了default方法和static方法,interface中声明的方法默认为 public abstract 修饰,default方法 就相当于只有publi ...
分类:
编程语言 时间:
2017-08-13 20:51:12
阅读次数:
185
import print('frrom the my_module.py') money=1000 def rend1(): print('my_my_module->reand1->money',money) def rend2(): print('my_module->read2 calling ...
分类:
编程语言 时间:
2017-08-09 19:58:26
阅读次数:
176
Comrade Dujikov is busy choosing artists for Timofey's birthday and is recieving calls from Taymyr from Ilia-alpinist. Ilia-alpinist calls every n min ...
分类:
其他好文 时间:
2017-08-09 13:07:34
阅读次数:
198
如何创建一个基本的插件 有时您希望在整个代码中提供一些功能。例如,也许你想要一个单一的方法,你可以调用一个jQuery选择,对选择执行一系列的操作。在这种情况下,您可能需要编写一个插件。 链接jQuery如何工作101:jQuery对象方法 在我们编写自己的插件之前,首先要了解一下jQuery如何工 ...
分类:
Web程序 时间:
2017-08-08 00:39:47
阅读次数:
313
bfs + 记住每层的前一个节点像是linkedlist 层次递进法— 充分利用perfect tree 的性质, 记住下一层, 下一层有才对其进行遍历, 内部循环操作本层的子节点 双循环(通过next) : 外层遍历(记住下层节点的起始位置left)- 向下遍历-- 内循环(通过cur.next) ...
分类:
其他好文 时间:
2017-08-06 20:56:11
阅读次数:
146
贯穿整个caffe的就是数据blob: #ifndef CAFFE_BLOB_HPP_ #define CAFFE_BLOB_HPP_ #include <algorithm> #include <string> #include <vector> #include "caffe/common.hp ...
分类:
其他好文 时间:
2017-07-31 20:01:36
阅读次数:
569
今天自己模拟了一套题,只写出两道来,第三道时间到了过了几分钟才写出来,啊,太菜了。 A. Taymyr is calling you 水题,问你在z范围内 两个序列 n,2*n,3*n...... 和 m,2*m,3*m.....有多少个是一样的。 #include<bits/stdc++.h> u ...
分类:
其他好文 时间:
2017-07-30 16:58:16
阅读次数:
131
实现BinarySearchTree,感觉比前面的2,3,4Tree要简单很多。 part1实现find: private BinaryTreeNode findHelper(Comparable key, BinaryTreeNode node) { BinaryTreeNode newnode= ...
分类:
其他好文 时间:
2017-07-29 18:15:13
阅读次数:
141
SQLite doesn't support high concurrency. In case of a lot of concurrent access from multi-process or multi-thread, calling a SQLite r/w function is pr ...
分类:
数据库 时间:
2017-07-27 23:35:54
阅读次数:
545
Given the running logs of n functions that are executed in a nonpreemptive single threaded CPU, find the exclusive time of these functions. Each funct ...
分类:
其他好文 时间:
2017-07-27 15:47:40
阅读次数:
312