摘要:
Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime 阅读全文
posted @ 2017-01-02 21:15
bonelee
阅读(213)
评论(0)
推荐(0)
摘要:
Given a collection of distinct numbers, return all possible permutations. For example, [1,2,3] have the following permutations: class Solution(object) 阅读全文
posted @ 2017-01-02 20:23
bonelee
阅读(296)
评论(0)
推荐(0)
摘要:
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the 阅读全文
posted @ 2017-01-02 19:41
bonelee
阅读(293)
评论(0)
推荐(0)
摘要:
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or 阅读全文
posted @ 2017-01-02 17:23
bonelee
阅读(557)
评论(0)
推荐(0)