摘要: Problem: Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another ar 阅读全文
posted @ 2016-12-30 11:35 SillyVicky 阅读(73) 评论(0) 推荐(0)
摘要: Problem: 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 阅读全文
posted @ 2016-12-30 11:11 SillyVicky 阅读(121) 评论(0) 推荐(0)
摘要: Problem: Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements o 阅读全文
posted @ 2016-12-30 09:20 SillyVicky 阅读(1585) 评论(0) 推荐(0)