5 ms·
What do you love about leetcode problems? Mindset makes a huge difference.
by say_it_as_it_is 5y ago
What do you love about leetcode problems? Mindset makes a huge difference.
- nomy99 5y agoI'm a simple man, I see "Accepted" and my solution is faster and more efficient than "X%" it makes my day. Maybe I am just the type of person who just enjoys coding for fun. Also I forgot to mention, one of the reasons I started doing leetcode was our team started a new project in python. Having never written a line of code in it, being a javascript developer for most of my career, I needed the shortest path to proficiency. Solving a bunch of leetcode questions in python also helped me get a grip on the language.
- nomy99 5y agoAlso try solving a question in Python then in C++, you will notice drastic performance differences. That is also fun. The testcases leetcode has is impressive. I know that I can never generate those cases in my spare time or with other tools, so its also enjoyable to watch your code work through it.
- say_it_as_it_is 5y agoI'm writing solutions in a couple of languages. It takes time, but helps to solidify concepts. Writing Python in a way that is compatible with statically typed languages doesn't take advantage of what Python offers but my run results lead me to believe perform better for that reason.
- nomy99 5y agoI'd like to also share this resource: https://labuladong.gitbook.io/algo-en https://labuladong.gitbook.io/algo-en It is a systematic approach to mastering Leetcode