Count uneaten leaves after caterpillar jumps
Filed under Myntra
The question
Given N leaves and K caterpillars with different jump factors starting at leaf 0, find how many leaves remain uneaten.
No write-up yet. Related questions below have one.
Related Myntra questions
Collected from public candidate posts and coding forums. Updated Nov 2026.