Insert disks into rings under specific rules
Filed under Traveloka
The question
Given arrays representing disk sizes and ring sizes with specific rules regarding passing and getting stuck, write code to find the maximum number of disks that can be inserted starting from the first element.
No write-up yet. Related questions below have one.
Related Traveloka questions
Collected from public candidate posts and coding forums. Updated Nov 2026.