heh, ChatGPT just gave me a working recursive backtracking algorithm. It was very easy to tweak into generating all permutations of n digits. it also wrote mergesort (for arrays and linked lists) flawlessly wow