Leetcode Find Minimum in Rotated Sorted Array II
摘要:Follow upfor "Find Minimum in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Suppose a sort...
阅读全文
posted @
2015-03-06 13:12
Chris兔的小佳佳
阅读(138)
推荐(0)
Leetcode Find Minimum in Rotated Sorted Array
摘要:Suppose 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).Find the minimum element.You m...
阅读全文
posted @
2015-03-06 11:13
Chris兔的小佳佳
阅读(127)
推荐(0)
Leetcode First Missing Positive
摘要:Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
阅读全文
posted @
2015-03-03 13:19
Chris兔的小佳佳
阅读(155)
推荐(0)
Leetcode Sudoku Solver
摘要:Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be on...
阅读全文
posted @
2015-03-01 17:50
Chris兔的小佳佳
阅读(252)
推荐(0)