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.