摘要: Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil... 阅读全文
posted @ 2015-01-08 06:37 metalx 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Pascal's Triangle:GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3... 阅读全文
posted @ 2015-01-08 03:53 metalx 阅读(186) 评论(0) 推荐(0) 编辑