Chairman85
Member
I need to write a function that recursively generates all permutations of the set of integers {1, 2 ... n^2} and store them in an array of size n^2. I'm at a loss as to how to go about it. Any help would be greatly appreciated.
This needs to be in C, by the way.
Edit: My mistake 0 should be 1
This needs to be in C, by the way.
Edit: My mistake 0 should be 1