New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Airbnb
Coding Question
AI Insights
Quick Summary
Simulate a turn-based Connect Four game on a fixed 6x7 grid where discs drop to the lowest available slot.
Detect wins by verifying four consecutive discs of the active player in horizontal, vertical, or diagonal directions.
Manage game states (PENDING, DRAW, WINNER) and format the board for visual output.
What This Tests
2D array manipulation and boundary validation
Directional scanning and neighbor counting
Turn-based state management and early termination
String construction and formatting
Common Patterns
Simulation
Two Pointers
Collapse
Hint 1
Hint 2
Hint 3
What Interviewers May Ask Next
Accepted
1.8k
/4.8k
Acceptance Rate
37.1%
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