摘要: 题目: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-09-15 21:35 savageclc26 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].代... 阅读全文
posted @ 2015-09-15 21:34 savageclc26 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 题目Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the a... 阅读全文
posted @ 2015-09-15 10:55 savageclc26 阅读(109) 评论(0) 推荐(0) 编辑