Any Hint?
How to do this question?
Any Hint?
How to do this question?
This problem is similar to generating permutations which must be taught in the backtracking section of your course. So refer that first.
Here is a reference code https://ide.codingblocks.com/s/295870
Okay, Thanks
They need to put in the Challenges section of Backtracking.