Need Leetcode.
There might be multiple times I've completed a problem as indicated by multiple files.
Usually I try to solve it without keeping time/space complexity in mind. When that's done, I research other solutions and modify mine to get the best time/space complexity.