Fork me on GitHub
摘要: 题目:Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next poi... 阅读全文
posted @ 2015-08-19 18:55 __Neo 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,2,3].... 阅读全文
posted @ 2015-08-19 16:17 __Neo 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?提示:首先,题目中要求'without using extra space',... 阅读全文
posted @ 2015-08-19 15:15 __Neo 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26... 阅读全文
posted @ 2015-08-19 11:00 __Neo 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 题目:Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: ... 阅读全文
posted @ 2015-08-19 10:00 __Neo 阅读(143) 评论(0) 推荐(0) 编辑