Leetcode has taught me that I'm a bad engineer
408 pointsI've been at it intensively for a couple months and my mind simply refuses to cooperate. If anything, after having done 400+ problems I seem to be worse at them than when I started.
Since your time is more valuable than mine, let me summarize:
7+ YoE, MSc. in some science (like it matters)
Last 4 years been mostly ETL with Spark and some backend thrown into the mix with a "senior" title for devops and mentoring noobs.
I used to think this job was a creative one, since writing frameworks and libraries for further use, documenting code and extreme programming made me think that I was building something new and useful.
In fact, due to having extreme ADHD the only thing that kept me distracted during all my overtime was the ability to pursue fun and challenging things. MPP and all the cool stuff you can do with modern tools is fun, interesting and challenging.
Leetcode isn't about fun and challenging things, it's about thinking in one particular way, spitting out solutions using the same exact data structures and jumping through hoops on command without philosophizing or creating anything that can be reused/extended.
This is also what Software Engineering has become: you memorize, regurgitate and participate in agile the masquerade. Creativity is shunned. Tried architectures/patterns are what is expected.
I wish I had practiced law for the past 7ish years instead, because at least all of my skills would still be relevant.
Comments (456) 108 threads
Show all comments
Showing thread 49 of 108
To get started, first understand that leetcode problems fall into different categories: graph problems, "dynamic programming", double-pointer techniques, etc. And within those broad categories, there are families of problems. So first, stop trying to solve random leetcode and pick one family. How about "Best time to buy and sells stock"? Start with the easiest one. It won't be that easy! Don't worry if you can't solve it. Turn to the discussion where people post solutions, or the official solutions page, pick one solution in a language familiar to you that looks understandable, and study it. It might take an hour or more to understand what it's doing, but stick with it! Make notes, whatever helps you. But get to the point where you absolutely understand how that solution works.
Now, try to write it out from scratch without looking at the solution. And then, try to do the next one in the family. Keep notes for yourself on what your learning. And eventually you'll have learned how to do some graph algorithms, some "dynamic programming" (it's a silly name and a bit hard to define but it's a category) etc. This will all take weeks / months. But that's fine -- your learning the material of a couple of semesters in an undergrad CS course.
It's fun if you enjoy programming and algorithms, in my opinion. If you cannot sit down and learn like that then it is possible that you don't have the sort of mindset that the companies who are employing these tests are looking for.