← Questions
One round of candy crush on a grid
0
I was asked this
No reports yet. Sign in to say where you were asked it.
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.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding
