Available question text
Find the minimum k such that by taking moves of lengths 1..k (each either left or right) you can land at target; this reduces to finding the smallest k with S = k(k+1)/2 >= |target| and S and |target| having the same parity (so S - |target| is even).
Related questions
Continue with questions that share topics or the same question type.
- Find Number of Ways to Reach the K-th Stair
Coding
- Maximum Number of Jumps to Reach the Last Index
Coding
- Minimum Adjacent Swaps to Reach the Kth Smallest Number
Coding
- Minimum Number of Vertices to Reach All Nodes
Coding · Directed Acyclic Graph · Graph Theory
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 754. Reach a Number
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source