← Flipkart questions

Reach a Number on a Number Line

Filed under Flipkart

You are standing at position 0 on an infinite number line. At each move i (starting from 1), you can take either i steps left or right. Find the minimum number of steps required to reach a given…

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 Flipkart questions

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