Going throught the thinking process!
As we were discussing a few good questions during a class, I figured out one thing. No matter how good you know the language, the major part is how to crack the logic. I often get close to the logic (or sometimes completely off), but hardly get it right without hints. And they are often the simplest approaches or the shortest answers. And I go like, So it was that simple!? At the end of the day, this is the most frustrating problem! Not able to crack a logic the right way, sometimes not even the brute force approach.
So reaching out to all the professionals here, How do you crack the logic? What goes on your mind while reading a problem? How to make the code even more optimized?

genuinely so valuable, if only someone gave me this advice when i was starting with DSA too! But given how the last time i solved leetcode was years ago, i am pretty sure i will have to restart entire DSA🥶