干炸牛_bian

导航

 

2018年6月8日

摘要: Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are stored such that the most significant d 阅读全文
posted @ 2018-06-08 20:55 干炸牛_bian 阅读(120) 评论(0) 推荐(0)
 
摘要: In a string S of lowercase letters, these letters form consecutive groups of the same character. For example, a string like S = "abbxxxxzyy" has the g 阅读全文
posted @ 2018-06-08 20:26 干炸牛_bian 阅读(101) 评论(0) 推荐(0)
 
摘要: Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra spa 阅读全文
posted @ 2018-06-08 15:15 干炸牛_bian 阅读(113) 评论(0) 推荐(0)
 
摘要: Given an array nums and a value val, remove all instances of that value in-place and return the new length. Do not allocate extra space for another ar 阅读全文
posted @ 2018-06-08 14:58 干炸牛_bian 阅读(95) 评论(0) 推荐(0)
 
摘要: In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data. 阅读全文
posted @ 2018-06-08 14:43 干炸牛_bian 阅读(129) 评论(0) 推荐(0)
 
摘要: Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. Not 阅读全文
posted @ 2018-06-08 10:36 干炸牛_bian 阅读(103) 评论(0) 推荐(0)
 

2018年6月7日

摘要: Given 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 it were inserted in or 阅读全文
posted @ 2018-06-07 23:23 干炸牛_bian 阅读(107) 评论(0) 推荐(0)
 
摘要: Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be 阅读全文
posted @ 2018-06-07 22:45 干炸牛_bian 阅读(106) 评论(0) 推荐(0)
 
摘要: Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexi 阅读全文
posted @ 2018-06-07 20:23 干炸牛_bian 阅读(136) 评论(0) 推荐(0)
 
摘要: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2018-06-07 19:54 干炸牛_bian 阅读(97) 评论(0) 推荐(0)