โ† OYO questions

Forming numbers with operations

Filed under OYO

Given integers d, a, b and an array of integers, count how many numbers in the array can be formed by starting at d and applying a sequence of additions and subtractions of a and b.

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.