← MAQ Software questions

Minimum steps to reach a destination

Filed under MAQ Software · Also reported at InMobi

Given a target integer `target` on a number line, start at position 0. At the `i`-th step, you can move either `i` units to the left or `i` units to the right. Return the minimum number of steps…

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 MAQ Software questions

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