2015年1月1日

摘要: Search in Rotated Sorted Array IIFollow up for "LeetCode: Search in Rotated Sorted Array 解题报告":What ifduplicatesare allowed?Would this affect the run-... 阅读全文
posted @ 2015-01-01 20:34 Yu's Garden 阅读(728) 评论(0) 推荐(0) 编辑
摘要: 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 @ 2015-01-01 20:23 Yu's Garden 阅读(924) 评论(0) 推荐(0) 编辑
摘要: Binary Search Tree IteratorImplement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Callin... 阅读全文
posted @ 2015-01-01 16:42 Yu's Garden 阅读(5711) 评论(0) 推荐(0) 编辑
摘要: 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 @ 2015-01-01 00:17 Yu's Garden 阅读(575) 评论(0) 推荐(0) 编辑

导航