本文转载自 Erica Sadun 的博客 In the dark fetid implementation mists behind the slick city Swift streets lies a secret world where enumerations are merely int ...
分类:
移动开发 时间:
2018-01-07 11:37:58
阅读次数:
292
Hashing Hard Version Given a hash table of size N, we can define a hash function . Suppose that the linear probing is used to solve collisions, we can ...
分类:
其他好文 时间:
2018-01-01 19:29:57
阅读次数:
176
Given the coordinates of four points in 2D space, return whether the four points could construct a square. The coordinate (x,y) of a point is represen ...
分类:
其他好文 时间:
2017-12-30 12:30:04
阅读次数:
105
https://www.codeproject.com/Articles/33052/Visual-Representation-of-SQL-Joins ...
分类:
数据库 时间:
2017-12-28 17:17:50
阅读次数:
165
一、什么是Rest? REST不是"rest"这个单词,而是几个单词缩写 -- REpresentational State Transfer 直接翻译:表现层状态转移,但这个翻译正常人根本看不懂,找到的一种最好理解的说法是,URL定位资源,用HTTP动词(GET,POST,DELETE,DETC) ...
Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks.Tasks could ...
分类:
其他好文 时间:
2017-12-22 15:05:04
阅读次数:
102
题目: Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible represen ...
分类:
编程语言 时间:
2017-12-15 21:35:06
阅读次数:
216
object类中equals方法源码如下所示 object类中equals方法源码如下所示 Object中的equals方法是直接判断this和obj本身的值是否相等,即用来判断调用equals的对象和形参obj所引用的对象是否是同一对象,所谓同一对象就是指内存中同一块存储单元,如果this和obj ...
分类:
其他好文 时间:
2017-12-15 12:37:17
阅读次数:
163
This is a basic union-find problem. Given a graph with points being added, we can at least solve: The idea is simple. To represent a list of islands, ...
分类:
其他好文 时间:
2017-12-13 01:50:48
阅读次数:
171
定义 组合(Composite Pattern)模式也叫合成模式,用来描述部分与整体的关系。英文原话是:Compose objects into tree structures to represent part-whole hierarchies.Composite lets clients tr ...
分类:
其他好文 时间:
2017-12-08 01:25:19
阅读次数:
206