LeetCode::Array(Part1)
27. Remove Element
Given an array nums and a value val
, remove all instances of that value in-place and return the new length.
The order of elements can be changed. It doesn’t matter what you leave beyond the new length.
Solution 1
26. Remove Duplicates from Sorted Array
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.