array
sogr_bupt
这个作者很懒,什么都没留下…
展开
-
[leetcode][array]remove dulplicates from sorted array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this in place wi原创 2015-02-01 15:01:34 · 357 阅读 · 0 评论 -
[leetcode][array]Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from原创 2015-02-04 14:10:03 · 296 阅读 · 0 评论