- 博客(4)
- 收藏
- 关注
原创 LeetCode题解: Valid Number
Valid Number Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true Note: It is intended for the problem statement t
2013-12-16 13:12:06 1857
原创 LeetCode题解:Implement strStr()
Implement strStr() Implement strStr(). Returns a pointer to the first occurrence of needle in haystack, or null if needle is not part of haystack. 思路: 首先想到的是KMP算法。不过似乎不是很成功,提交了之后总是报Runtime error
2013-12-16 06:37:53 2100
原创 Amazon DynamoDB的模型
Amazon的DynamoDB是一个NoSQL类型的数据库。 数据库(Database)是由表(Table)组成的。每个表则由项(Item)组成。每一项包含任意个属性(Attribute),但是总共大小不能超过64KB。每个属性都是一个名字/值组成的对(name/value pair)。 每一个Item均有一个主键(Primary Key)。主键分两种类型,一种是哈希(Hash)类型,
2013-12-11 14:07:36 1157
原创 LeetCode题解:LRU Cache
LRU Cache Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be positive) of
2013-12-02 16:24:01 1862 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人