注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
Coding Round 1:
Design TicTacToe (m × n grid, k in a row)
Design a TicTacToe game played on an m x n board between two players. Implement the TicTacToe class:
- TicTacToe(int m, int n, int k) — initializes the board with dimensions m x n and the win condition k.
- int move(int row, int col, int player) — indicates the player with id player (1 or 2) plays at cell . The move is guaranteed to be valid. Returns:
- 0 if no one wins,
- 1 if player 1 wins,
- 2 if player 2 wins.
A player wins if they place k of their marks in a consecutive line — horizontally, vertically, or diagonally (either direction).
Algorithm Round 2:
Snapshot Set Iterator
Design SnapshotS contents are opaque — you do not need to interpret or process them.
Deliverable
Go ahead and start designing. Ask me anything you need before you begin.
Behavioral Round 4:
- Talk to me about your current role? Why Databricks?
- Tell me about a project that you are most proud of?
- Has there been feedback shared with you which you did not agree with? How did you react?
- Tell me about a time you disagreed with your co-worker about a technical decision? How was it resolved?
|