紧张云朵

文章
6
资源
0
加入时间
3年0月20天

leetcode 27. Remove element

Remove elementGiven 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 array, you must do this by modifying the input array in-place with O(1) extra memory.The