摘要: 题目: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted i 阅读全文
posted @ 2016-06-01 14:24 CodingGirl121 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, flatten it to a linked list in-place. For example,Given The flattened tree should look like: 题目解答: 这个题目是将一个二叉树变成一个通过右子节点链接的链表 阅读全文
posted @ 2016-06-01 14:15 CodingGirl121 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 题目: The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each 阅读全文
posted @ 2016-06-01 11:22 CodingGirl121 阅读(126) 评论(0) 推荐(0) 编辑