New
The Learning module is now live
See what's new
×
Question Bank
Learning
NEW
Pricing
Blog
Forum
HOT
JobRadar
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Pinterest
Coding Question
AI Insights
Quick Summary
Simulate a single step of a grid-based matching game.
Identify and mark bubbles meeting a neighbor-count threshold for removal.
Clear marked cells simultaneously and apply downward gravity per column.
What This Tests
Grid traversal and boundary handling
State isolation during multi-step simulations
Coordinate mapping and neighbor iteration
In-place array manipulation and element compaction
Common Patterns
Simulation
Matrix Traversal
Two Pointers
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected