Objective-C Protocols 1.1 Formal Protocols A formal protocol (like an informal protocol) is a named list of methods and properties. formal protocol (像...
分类:
其他好文 时间:
2015-05-11 10:31:26
阅读次数:
115
这节课,我们学习了Stream的相关内容。首先是Stream的大体介绍:.NET Framework provides Files and directories classes. These classes provide methods and properties for creating, ...
/*
* file.cpp: for linux file methods
*/
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define UNIT_TEST 1
// file class
class File
{
pub...
分类:
系统相关 时间:
2015-05-10 19:03:32
阅读次数:
138
Objective -C Categories The dynamic runtime dispatch mechanism employed by Objective-C lets you add methods to existing classes. 被Objective -C 采纳的动态运行...
分类:
其他好文 时间:
2015-05-10 18:39:29
阅读次数:
200
Implement Trie (Prefix Tree)
Total Accepted: 601
Total Submissions: 2396
Implement a trie with insert, search, and startsWith methods.
Note:
You may assume that all inputs are consist of...
分类:
其他好文 时间:
2015-05-09 07:43:51
阅读次数:
347
Implement a trie with insert, search, and startsWith methods.Note:
You may assume that all inputs are consist of lowercase letters a-z.思路:
之前也没有接触过Trie,百科上查了一下,大概就是词源的问题,N个word有公共前缀,只是后缀不同,可以用树表示。
可...
分类:
其他好文 时间:
2015-05-08 22:05:17
阅读次数:
158
The basic idea is to use prototype chaining to inherit properties and methods on the prototype and to use constructor stealing to inherit instance p.....
分类:
其他好文 时间:
2015-05-08 17:52:50
阅读次数:
115
__autoload():当类中找不到相关类的时候,会自动执行__autoload()函数,可以自动加载相关文件__set() : 当对类的私有变量进行调用赋值时,自动调用该方法。 __get() : 在外部获得类的私有属性时,自动调用该方法。get_class_methods(): 获取类的方法g...
分类:
Web程序 时间:
2015-05-07 14:07:20
阅读次数:
114
void java.lang.Object.notifyAll()Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be ....
分类:
其他好文 时间:
2015-05-07 14:03:01
阅读次数:
100
转自:【基础】常用的机器学习&数据挖掘知识点Basis(基础):MSE(Mean Square Error 均方误差),LMS(LeastMean Square 最小均方),LSM(Least Square Methods 最小二乘法),MLE(MaximumLikelihood Estimatio...
分类:
其他好文 时间:
2015-05-07 12:15:57
阅读次数:
200