I'm trying to find a way to make a recursive algorithm that will give all the k-length subsets of a set of numbers (0 -> n), but I cannot send a list to the function as an argument.
Eventually I want to return a list of lists
I thought on starting from the end, using some kind of DP. None of the things I've tried got even close to it
Thank you