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

2/15/2020 5:17:03 PM


3 Answers

New Answer


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


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


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