Recently, I came across this very beautiful problem which is also a very good use case of graph breadth first search algorithm.
Let’s first understand what does permutation mean. Definition taken from Wikipedia says, “In mathematics, a…
High rise buildings and too many stairs! Well, wait! Do you ever think about the number of ways you can climb to the…