Given an integer array containing 1s and 2s, move all 1s to the start and all 2s to the end, in place.
Unlock detailed company stats for this questionUpgrade
Also asked as · Given an integer array containing 1s, 2s and 3s, move all 1s to the start, followed by the 2s, then the 3s at the end, in place.
Community answers
No answers contributed by the community yet.


