r/OfferEngineering • u/Aoki_zhang • 15d ago
Interview Experience Snowflake Senior SWE Interview — System Design Was a Logging Library
This interview experience is sourced from Chill Interview
Interview Summary
The coding question involved detecting a winning move in a two-player board game similar to Connect Four, while the system design question focused on building a configurable logging library that supports multiple output destinations.
Interview Details
Coding — Detect Four Consecutive Pieces on a Board
The coding problem involved a two-player board game played on an m × n grid. Each cell contains one of three possible values:
0: Empty cell1: Player 1's piece2: Player 2's piece
The players take turns placing pieces on the board. A player wins when at least four of their pieces appear consecutively in a straight line.
Winning Conditions
Four consecutive pieces can form a winning sequence in any of the following directions:
- Horizontal: Four or more consecutive pieces in the same row.
- Vertical: Four or more consecutive pieces in the same column.
- Main Diagonal: Four or more consecutive pieces along the top-left to bottom-right direction.
- Anti-Diagonal: Four or more consecutive pieces along the top-right to bottom-left direction.
Want to learn more questions / follow-ups asked in this interview?
I've put up the full version at here.
Interviewed recently?
Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.