摘要: The API: int read4(char *buf) reads 4 characters at a time from a file.The return value is the actual number of characters read. For example, it retur... 阅读全文
posted @ 2014-12-13 02:28 LiBlog 阅读(219) 评论(0) 推荐(0) 编辑
摘要: The API: int read4(char *buf) reads 4 characters at a time from a file.The return value is the actual number of characters read. For example, it retur... 阅读全文
posted @ 2014-12-13 02:04 LiBlog 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s = “eceba”,T is "ece" which... 阅读全文
posted @ 2014-12-13 01:50 LiBlog 阅读(215) 评论(0) 推荐(0) 编辑
摘要: Given a sorted integer array where the range of elements are [lower, upper] inclusive, return its missing ranges. For example, given [0, 1, 3, 50, 75] 阅读全文
posted @ 2014-12-13 01:29 LiBlog 阅读(331) 评论(0) 推荐(0) 编辑