← Questions

Count legal tic-tac-toe game sequences

0
DecagonCodingLast asked Nov 2026

A coding interview question asked in Decagon's technical phone screen, last asked Nov 2026. It tests backtracking, games and enumeration. Reported by 2 members.

Count how many different tic-tac-toe games can be played. A game is the ordered list of moves from the board you start on to the end: X and O alternate, and play stops the moment one of them completes a line or the board is full.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

backtracking · games · enumeration

Your code and the AI tutor open when you unlock this question.