+1

how to write a program for 8 queens problem in kotlin language

2/15/2020 5:17:03 PM

k.bhavagni

3 Answers

New Answer

+3

Do you have to do this as a task? You should first show us your attempt of solving this problem.

+2

The backtracking algorithm will help you. 💡 https://en.m.wikipedia.org/wiki/Backtracking 🔖We also learn by looking at the code of others. Look at this code, try to understand it and write your version on Kotlin. https://code.sololearn.com/cDJxi01GD99l/?ref=app

+2

I coded my version based on this: https://www.geeksforgeeks.org/backtracking-set-3-n-queen-problem