← NoBroker.in questions

Stone Crashing Simulation

Filed under NoBroker.in

The question

Given an array of stone sizes, repeatedly smash the two largest stones. If they are equal they both become 0, otherwise the smaller becomes 0 and the larger becomes the difference.

No write-up yet. Related questions below have one.

Related NoBroker.in questions

Collected from public candidate posts and coding forums. Updated Nov 2026.