上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 29 下一页

same-tree

摘要: //递归判断两个数是否相同 阅读全文
posted @ 2017-03-08 13:12 123_123 阅读(85) 评论(0) 推荐(0) 编辑

symmetric-tree

摘要: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: But the fol 阅读全文
posted @ 2017-03-08 12:23 123_123 阅读(104) 评论(0) 推荐(0) 编辑

merge-sorted-array

摘要: Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space to hold additional elements 阅读全文
posted @ 2017-03-08 12:13 123_123 阅读(95) 评论(0) 推荐(0) 编辑

search-a-2d-matrix

摘要: 题目描述 Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sor 阅读全文
posted @ 2017-03-08 11:54 123_123 阅读(108) 评论(0) 推荐(0) 编辑

path-sum

摘要: 题目描述: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given 阅读全文
posted @ 2017-03-08 11:38 123_123 阅读(119) 评论(0) 推荐(0) 编辑

minimum-path-sum

摘要: Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. 阅读全文
posted @ 2017-03-08 10:46 123_123 阅读(93) 评论(0) 推荐(0) 编辑

search-insert-position

摘要: 题目描述 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 阅读全文
posted @ 2017-03-08 08:58 123_123 阅读(119) 评论(0) 推荐(0) 编辑

remove-element

摘要: Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be changed. It doesn't ma 阅读全文
posted @ 2017-03-08 08:32 123_123 阅读(104) 评论(0) 推荐(0) 编辑

remove-duplicates-from-sorted-array

摘要: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo 阅读全文
posted @ 2017-03-08 08:18 123_123 阅读(67) 评论(0) 推荐(0) 编辑

binary-tree-level-order-traversal

摘要: //层次遍历二叉树 题目描述 Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example: Give 阅读全文
posted @ 2017-03-08 07:27 123_123 阅读(74) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 29 下一页