Expedia Interview Question: Find if an n by n tic tac toe... | Glassdoor

Interview Question

Software Development Engineer Intern Interview(Student Candidate) Bellevue, WA

Find if an n by n tic tac toe game has a winner in constant


Interview Answer

1 Answer


keep track of all the row, column, diagonal and anti diagonal sum for separate players . for every move increment /decrement corresponding sum and evaluate .

javaGirl on Apr 11, 2013

Add Answers or Comments

To comment on this, Sign In or Sign Up.