Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Day 319 #649

Closed
vaskoz opened this issue Jul 7, 2019 · 0 comments · Fixed by #809
Closed

Day 319 #649

vaskoz opened this issue Jul 7, 2019 · 0 comments · Fixed by #809
Assignees

Comments

@vaskoz
Copy link
Owner

vaskoz commented Jul 7, 2019

Good morning! Here's your coding interview problem for today.

This problem was asked by Airbnb.

An 8-puzzle is a game played on a 3 x 3 board of tiles, with the ninth tile missing. The remaining tiles are labeled 1 through 8 but shuffled randomly. Tiles may slide horizontally or vertically into an empty space, but may not be removed from the board.

Design a class to represent the board, and find a series of steps to bring the board to the state [[1, 2, 3], [4, 5, 6], [7, 8, None]].

@vaskoz vaskoz self-assigned this Jul 7, 2019
@vaskoz vaskoz mentioned this issue Dec 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant