摘要: 35. 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 b 阅读全文
posted @ 2019-02-20 21:28 mingL 阅读(173) 评论(0) 推荐(0)
摘要: 34. Find First and Last Position of Element in Sorted Array Given an array of integers nums sorted in ascending order, find the starting and ending po 阅读全文
posted @ 2019-02-20 21:25 mingL 阅读(135) 评论(0) 推荐(0)
摘要: 33. Search in Rotated Sorted Array Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6, 阅读全文
posted @ 2019-02-20 21:22 mingL 阅读(96) 评论(0) 推荐(0)
摘要: 32. Longest Valid Parentheses Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parenthese 阅读全文
posted @ 2019-02-20 21:18 mingL 阅读(140) 评论(0) 推荐(0)