← OYO questions

Reachability with Addition and Subtraction

Filed under OYO

Given a starting value 'd' and two values 'a' and 'b', count how many elements in a provided array can be formed by starting at 'd' and applying any sequence of additions or subtractions of 'a' and…

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

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