Algorithm Interview Questions

882 algorithm interview questions shared by candidates

Reversi / Othello Game Logic: You receive a board size n and a series of moves. You have to simulate the game mechanics of Othello/Reversi. This involves placing a piece, checking all 8 directions (vertical, horizontal, diagonal) for opponent pieces, and "flipping" them if they are sandwiched between your pieces. You had to return the final score of Black vs. White pieces.
avatar

PhD Algorithm Development Intern

Interviewed at Hudson River Trading

4.1
Nov 11, 2025

Reversi / Othello Game Logic: You receive a board size n and a series of moves. You have to simulate the game mechanics of Othello/Reversi. This involves placing a piece, checking all 8 directions (vertical, horizontal, diagonal) for opponent pieces, and "flipping" them if they are sandwiched between your pieces. You had to return the final score of Black vs. White pieces.

Viewing 551 - 560 interview questions

Glassdoor has 882 interview questions and reports from Algorithm interviews. Prepare for your interview. Get hired. Love your job.