Convert ARR1 elements to ARR2 using operations and subtract/add
Filed under Amazon
The question
Given two arrays ARR1 and m elements in ARR2, and numbers D, A, and B, count the total number of ways any element in ARR1 can be converted into any element in ARR2 by subtracting D first and then adding or subtracting A and B any number of times.
No write-up yet. Related questions below have one.
Related Amazon questions
Collected from public candidate posts and coding forums. Updated Nov 2026.