But I still can't understand it totally. Could you help me?
- remove all instances of that value in place: remove all items equal to 'val' in place?
- It doesn't matter what you leave beyond the new length: what that means? input: [4, 5, 4] output: [5, 4, 4]. Those items equal to 'val' still stay at the same array but behind others?