When thinking about how long you should spend working on a problem, there’s one answer for practice and another answer for performance:
How much time should I allow myself to solve a Hard problem on LeetCode? (answer)
I’m doing most of my writing on Quora this year. For more information, see A Project for 2020.