CodingReported in a candidate post, May 2019
Reachable numbers using addition and subtraction
Filed under Grofers
The question
Given a starting number D and two values a and b, determine how many numbers in a given array can be reached by repeatedly adding or subtracting a and b.
No write-up yet. Related questions below have one.
Related Grofers questions
Collected from public candidate posts and coding forums. Updated Nov 2026.