摘要:
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)
浙公网安备 33010602011771号