abc_begin

导航

2017年9月19日 #

183.Wood Cut【hard】

摘要: 183.Wood Cut【hard】 Given n pieces of wood with length L[i] (integer array). Cut them into small pieces to guarantee you could have equal or more than 阅读全文

posted @ 2017-09-19 17:20 LastBattle 阅读(369) 评论(0) 推荐(0)

61. Search for a Range【medium】

摘要: 61. Search for a Range【medium】 Given a sorted array of n integers, find the starting and ending position of a given target value. If the target is not 阅读全文

posted @ 2017-09-19 16:36 LastBattle 阅读(147) 评论(0) 推荐(0)

62. Search in Rotated Sorted Array【medium】

摘要: 62. Search in Rotated Sorted Array【medium】 Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might becom 阅读全文

posted @ 2017-09-19 15:53 LastBattle 阅读(138) 评论(0) 推荐(0)

74. First Bad Version 【medium】

摘要: 74. First Bad Version 【medium】 The code base version is an integer start from 1 to n. One day, someone committed a bad version in the code case, so it 阅读全文

posted @ 2017-09-19 14:24 LastBattle 阅读(124) 评论(0) 推荐(0)

75. Find Peak Element 【medium】

摘要: 75. Find Peak Element 【medium】 There is an integer array which has the following features: The numbers in adjacent positions are different. A[0] < A[1 阅读全文

posted @ 2017-09-19 14:13 LastBattle 阅读(114) 评论(0) 推荐(0)