From 20159312beca81b0d2523ebf040ccc7992f89274 Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Mon, 20 Aug 2018 15:59:37 +0300 Subject: [PATCH] Move nQueens bitwise version to the same folder with nQueens algorithm. --- src/algorithms/uncategorized/n-queens-bitwise/README.md | 9 --------- src/algorithms/uncategorized/n-queens/README.md | 4 ++++ .../__test__/nQeensBitwise.test.js | 0 .../{n-queens-bitwise => n-queens}/nQueensBitwise.js | 0 4 files changed, 4 insertions(+), 9 deletions(-) delete mode 100644 src/algorithms/uncategorized/n-queens-bitwise/README.md rename src/algorithms/uncategorized/{n-queens-bitwise => n-queens}/__test__/nQeensBitwise.test.js (100%) rename src/algorithms/uncategorized/{n-queens-bitwise => n-queens}/nQueensBitwise.js (100%) diff --git a/src/algorithms/uncategorized/n-queens-bitwise/README.md b/src/algorithms/uncategorized/n-queens-bitwise/README.md deleted file mode 100644 index f722287b..00000000 --- a/src/algorithms/uncategorized/n-queens-bitwise/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# N-Queens Problem with Bitwise Solution - -Write a function that will find all possible solutions to the N queens problem for a given N. - -## References - -- [Wikipedia](https://en.wikipedia.org/wiki/Eight_queens_puzzle) -- [GREG TROWBRIDGE](http://gregtrowbridge.com/a-bitwise-solution-to-the-n-queens-problem-in-javascript/) -- [Backtracking Algorithms in MCPL using Bit Patterns and Recursion](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.51.7113&rep=rep1&type=pdf) diff --git a/src/algorithms/uncategorized/n-queens/README.md b/src/algorithms/uncategorized/n-queens/README.md index 703cf5e9..74031df0 100644 --- a/src/algorithms/uncategorized/n-queens/README.md +++ b/src/algorithms/uncategorized/n-queens/README.md @@ -71,3 +71,7 @@ and return false. - [GeeksForGeeks](https://www.geeksforgeeks.org/backtracking-set-3-n-queen-problem/) - [On YouTube by Abdul Bari](https://www.youtube.com/watch?v=xFv_Hl4B83A&list=PLLXdhg_r2hKA7DPDsunoDZ-Z769jWn4R8) - [On YouTube by Tushar Roy](https://www.youtube.com/watch?v=xouin83ebxE&list=PLLXdhg_r2hKA7DPDsunoDZ-Z769jWn4R8) +- Bitwise Solution + - [Wikipedia](https://en.wikipedia.org/wiki/Eight_queens_puzzle) + - [GREG TROWBRIDGE](http://gregtrowbridge.com/a-bitwise-solution-to-the-n-queens-problem-in-javascript/) + - [Backtracking Algorithms in MCPL using Bit Patterns and Recursion](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.51.7113&rep=rep1&type=pdf) diff --git a/src/algorithms/uncategorized/n-queens-bitwise/__test__/nQeensBitwise.test.js b/src/algorithms/uncategorized/n-queens/__test__/nQeensBitwise.test.js similarity index 100% rename from src/algorithms/uncategorized/n-queens-bitwise/__test__/nQeensBitwise.test.js rename to src/algorithms/uncategorized/n-queens/__test__/nQeensBitwise.test.js diff --git a/src/algorithms/uncategorized/n-queens-bitwise/nQueensBitwise.js b/src/algorithms/uncategorized/n-queens/nQueensBitwise.js similarity index 100% rename from src/algorithms/uncategorized/n-queens-bitwise/nQueensBitwise.js rename to src/algorithms/uncategorized/n-queens/nQueensBitwise.js