problem:->https://cses.fi/problemset/task/1070
solution:->https://github.com/JohnKunwar/cses/blob/main/permutations.c
indexing is intersting to said it least. Especially when doing n / 2.
GitHub
Solution to the problem of CSES. Contribute to JohnKunwar/cses development by creating an account on GitHub.