One round of candy crush on a grid

0
Remix

An integer matrix holds coloured blocks; equal numbers are the same colour and 0 is empty. Run one round: find every block that is part of a group to crush (clarify the rule; the reports describe runs of at least three same-coloured blocks), clear them all at once, then let the remaining blocks fall down. Return the matrix after the round.

UberOnline assessmentLast asked Sep 2025
No answer yet. Write the first one; the best answer gets endorsed.