← Adobe questions

Move negative numbers to end of array

Filed under Adobe

Given an array containing positive and negative numbers, rearrange the array to move all negative numbers to the end. Maintain the relative order of the elements if possible, or use a two-pointer…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Adobe questions

Collected from public candidate posts and coding forums. Updated Nov 2026.