摘要: 题目: 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 阅读全文
posted @ 2017-02-19 23:50 panini 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 题目: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop() -- R 阅读全文
posted @ 2017-02-19 04:43 panini 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 链接: http://leetcode.com/problems/lin 阅读全文
posted @ 2017-02-19 04:06 panini 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime com 阅读全文
posted @ 2017-02-19 03:48 panini 阅读(103) 评论(0) 推荐(0) 编辑