摘要: Implement the following operations of a queue using stacks.push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front o... 阅读全文
posted @ 2015-11-22 22:03 0giant 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Given an integer, write a function to determine if it is a power of two.Credits:Special thanks to @jianchao.li.fighter for adding this problem and cre... 阅读全文
posted @ 2015-11-22 22:01 0giant 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Subscribe... 阅读全文
posted @ 2015-11-22 16:55 0giant 阅读(121) 评论(0) 推荐(0) 编辑