摘要: ### Description:> Given a singly linked list, determine if it is a palindrome.>> ###### Follow up:> Could you do it in O(n) time and O(1) space?### So... 阅读全文
posted @ 2015-08-12 21:14 影湛 阅读(108) 评论(0) 推荐(0) 编辑
摘要: ### Description:> Implement the following operations of a queue using stacks.> > - push(x) -- Push element x to the back of queue.> - pop() -- Removes... 阅读全文
posted @ 2015-08-12 18:52 影湛 阅读(103) 评论(0) 推荐(0) 编辑