Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Tic-Tac-Toe Winner

A 3 x 3 board contains X, O and '.' characters. Print X, O or None depending on who has three in a row, column or diagonal.

Constraints

Exactly one winner at most

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.