CID Episode 100: Count distinct chemical drop areas
Filed under CRED
The question
Given an N x M grid and queries where chemical drops fall at specific tiles, maintain and output the number of distinct connected drop areas sharing common sides after each drop query.
No write-up yet. Related questions below have one.
Related CRED questions
Collected from public candidate posts and coding forums. Updated Nov 2026.