CodingReported in a candidate post, Sep 2024
Move the element after each negative number to the front
Filed under EY
The question
In an array, find the negative elements and move the element that follows each one to the front, preserving that ordering.
No write-up yet. Related questions below have one.
Related EY questions
Collected from public candidate posts and coding forums. Updated Nov 2026.