2015年9月20日

leetcode 283:Move Zeroes

摘要: 题目:Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.For example, g... 阅读全文

posted @ 2015-09-20 18:36 cainiao15 阅读(139) 评论(0) 推荐(0) 编辑

leetcode 226: Invert Binary Tree

摘要: 题目:Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1Trivia:This problem was inspired byt... 阅读全文

posted @ 2015-09-20 17:25 cainiao15 阅读(127) 评论(0) 推荐(0) 编辑

leetcode 217:Contains Duplicate

摘要: 题目: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 ... 阅读全文

posted @ 2015-09-20 17:01 cainiao15 阅读(113) 评论(0) 推荐(0) 编辑

导航