天天看點

Remove Element

題目

given an array and a value, 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.

方法

使用左右兩個标記。

繼續閱讀