摘要: The problem:Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each... 阅读全文
posted @ 2015-01-20 13:14 airforce 阅读(131) 评论(0) 推荐(0) 编辑
摘要: The problem:There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimited gas tank and i... 阅读全文
posted @ 2015-01-20 11:18 airforce 阅读(181) 评论(0) 推荐(0) 编辑
摘要: The question:Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using ex... 阅读全文
posted @ 2015-01-20 02:25 airforce 阅读(160) 评论(0) 推荐(0) 编辑