Recently, I came across this very beautiful problem which is also a very good use case of graph breadth first search algorithm.
There is an 8x8 chessboard, there can be multiple Black Queens and one White King. We are given with the coordinates of all the black queens and and one white king, we have to return all the queens (in any order) that…
Let’s first understand what does permutation mean. Definition taken from Wikipedia says, “In mathematics, a…
Hi guys, I am back with another coding interview problem. So, here we go!