I used to overthink things like this and think of very complex solutions that cover a lot of edge cases. But then I realized that if the solution to something is becoming too complex, maybe, just maybe I'm overthinking it. That has really helped me a lot
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You just saved me today. I almost wasted the whole day looking for solutions online. The logic is so simple and readable. It worked perfectly.
I used to overthink things like this and think of very complex solutions that cover a lot of edge cases. But then I realized that if the solution to something is becoming too complex, maybe, just maybe I'm overthinking it. That has really helped me a lot