上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页

[leetcode]Valid Sudoku

摘要: Valid SudokuDetermine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are ... 阅读全文
posted @ 2014-08-09 20:38 喵星人与汪星人 阅读(279) 评论(0) 推荐(0) 编辑

[leetcode]Search in Rotated Sorted Array

摘要: Search in Rotated Sorted ArraySuppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).... 阅读全文
posted @ 2014-08-09 16:57 喵星人与汪星人 阅读(268) 评论(0) 推荐(0) 编辑

[leetcode]Search for a Range

摘要: Search for a RangeGiven a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity ... 阅读全文
posted @ 2014-08-09 16:10 喵星人与汪星人 阅读(273) 评论(0) 推荐(0) 编辑

[leetcode]Search Insert Position

摘要: Search Insert PositionGiven 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 ... 阅读全文
posted @ 2014-08-09 15:47 喵星人与汪星人 阅读(223) 评论(0) 推荐(0) 编辑

[leetcode]Unique Paths II

摘要: Unique Paths IIFollow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle an... 阅读全文
posted @ 2014-08-08 22:43 喵星人与汪星人 阅读(191) 评论(0) 推荐(0) 编辑

[leetcode]Unique Paths

摘要: Unique PathsA robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right a... 阅读全文
posted @ 2014-08-08 22:23 喵星人与汪星人 阅读(219) 评论(0) 推荐(0) 编辑

[leetcode]Binary Tree Postorder Traversal

摘要: Binary Tree Postorder TraversalGiven a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \... 阅读全文
posted @ 2014-08-08 22:00 喵星人与汪星人 阅读(160) 评论(0) 推荐(0) 编辑

[leetcode]Binary Tree Level Order Traversal II

摘要: Binary Tree Level Order Traversal IIGiven a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level... 阅读全文
posted @ 2014-08-08 21:35 喵星人与汪星人 阅读(143) 评论(0) 推荐(0) 编辑

[leetcode]Binary Tree Level Order Traversal

摘要: Binary Tree Level Order TraversalGiven a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).Fo... 阅读全文
posted @ 2014-08-08 21:26 喵星人与汪星人 阅读(254) 评论(0) 推荐(0) 编辑

[leetcode]Binary Tree Zigzag Level Order Traversal

摘要: Binary Tree Zigzag Level Order TraversalGiven a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then... 阅读全文
posted @ 2014-08-08 21:11 喵星人与汪星人 阅读(208) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页