https://leetcode.com/problems/combinations?envType=study-plan-v2&envId=top-interview-150
My solution works! I came up with it at 4 AM when I was delirious.
The more optimal solutions use DFS. Mine is vaguely DFS? But more ad-hoc than the ones I'm looking at.
https://leetcode.com/problems/combinations?envType=study-plan-v2&envId=top-interview-150
My solution works! I came up with it at 4 AM when I was delirious.
The more optimal solutions use DFS. Mine is vaguely DFS? But more ad-hoc than the ones I'm looking at.