← ALL NOTES
Array

27. Remove Element

The array isn't sorted, but it doesn't need to be — you're just compacting the elements that aren't val to the front. Same slow/fast pair as the previous problem: a write pointer k collects the…

Loading…