โ† OYO questions

Count reachable numbers in array

Filed under OYO

Given a starting value 'd' and two integers 'a' and 'b', count how many numbers in a provided array can be formed by adding or subtracting 'a' or 'b' any number of times from 'd'.

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.