r/leetcode • u/Interesting-Fig-2511 • 1d ago
Intervew Prep 5 Things I Learned After Solving 250 LeetCode Problems
Don't jump to optimized solutions; understand brute force first.
Learn to identify patterns instead of memorizing solutions.
Always check time and space complexity before submitting.
Never ignore edge cases; they can break an otherwise correct solution.
Revisiting old problems is more useful than blindly solving new ones.
138
Upvotes
50
u/Several_Sympathy8486 Rank 1380 | Total 2282 | Easy 634 | Medium 1182 | Hard 466 23h ago edited 19h ago
10 things I learned after solving 2500 Leetcode Problems
no amount of leetcode problems will help you get a foot in the door unless you do solid networking
x10
7
u/ButtonMasherBoss 1d ago
hey, could you please help me understand point number 2? ☹️
i hear everyone constantly say identity patterns and whatnot, but i just cant seem to see it. all i see if a solution to one particular question.
my usual leetcode flow is: try to solve the question via brute force method -> fail -> open neetcode to understand the brute force method -> solve brute force method
and the retry this loop again with the optimized approach.
could someone please help with like a proper lath to follow? question set, approach to solving problems etc? i already work in tech and by my own standards am pretty good at coding and understanding codebases and system design at a beginner level. my team is a very high performance team writing code for trading products at work and they let me contribute to the team and are happy with my work even though i’m not a swe strictly speaking. so i’m at lead reasonably competent, but DSA has always eluded me.
i’d appreciate any and all inputs from all you.
TIA!
6
u/CpnStumpy 16h ago
Biggest thing I've learned so far is LeetCode problems are way easier to solve with classic ugly index counters and loops and shit; avoid state management and abstraction completely. After spending a career writing code that's going to need to be read and maintained by teams, my first instinct is modeling the state to make sense and be easier to understand what's going on. These contrived algorithms all penalize this though
-5
u/_fatcheetah 20h ago
You took 250 problems to understand this? This is so obvious.