摘要: 284. Peeking Iterator Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the pe 阅读全文
posted @ 2016-05-08 14:25 新一代的天皇巨星 阅读(183) 评论(0) 推荐(0)
摘要: 136. Single Number Given an array of integers, every element appears twice except for one. Find that single one. Your algorithm should have a linear r 阅读全文
posted @ 2016-05-08 13:26 新一代的天皇巨星 阅读(184) 评论(0) 推荐(0)
摘要: 286. Missing Number Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. For example, 阅读全文
posted @ 2016-05-08 13:18 新一代的天皇巨星 阅读(198) 评论(0) 推荐(0)