摘要:
Invert a binary tree. to Trivia:This problem was inspired by this original tweet by Max Howell: 这个题目只要实现一个递归调用即可 阅读全文
posted @ 2016-03-29 10:59 CSU蛋李 阅读(119) 评论(0) 推荐(0)
|
|
|
|
摘要:
Invert a binary tree. to Trivia:This problem was inspired by this original tweet by Max Howell: 这个题目只要实现一个递归调用即可 阅读全文
posted @ 2016-03-29 10:59 CSU蛋李 阅读(119) 评论(0) 推荐(0)
摘要:
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 阅读全文
posted @ 2016-03-29 01:52 CSU蛋李 阅读(128) 评论(0) 推荐(0)
摘要:
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? 像1->2->1,1->2->2->1,1,NULL这种都是回文链表 阅读全文
posted @ 2016-03-29 01:17 CSU蛋李 阅读(157) 评论(0) 推荐(0) |
|