I’m beginning to interview for my 2nd job coming out of a boot camp (I’ve been at my first for 2 yrs now). I lucked out last time around and never needed to leetcode since the places I happened to have interviewed used more real world problems. I understand that a lot of leetcode problems follow the same 4-5 patterns, and its usually just a matter of practicing enough to start recognizing them. Any good resources out there that could give me a heads up for what I should be looking for? I’m starting to get myself more familiar with some concepts like BFS, DFS, etc, but want to be sure I’m making the most of my time.
Cracking the Coding Interview, Elements of Programming Interviews, or just brute force by grinding LC
Just keep grinding. Eventually you will get lucky and get some problems you understand.
How inefficient
Google Jeremy Aguilon's blog, he lays out the patterns fairly well.
This is great, the info here is exactly what I had in mind. Thanks!!
Also, check out Back to Back SWE's YouTube channel - explains a ton of vital leetcode problems in a really clear and passionate manner. He tries to distill the patterns as well.
Checkout InterviewHelp.io/blog it has well documented patterns ..
There are definitely more than 4-5 patterns. Around 30-40 to be precise Some of the other patterns are bucket sort( can bring down time complexity from o(nlogk) to o(n), sweep line (o(n2) to o(nlogn)) backtracking , ordered trees, backtracking, minimax, sliding window, monotonically increasing/decreasing array. The best way is to do all the related problems together.read a lot of discuss section of these problems
Ah that makes sense! Maybe what I heard was that there are 4-5 most common ones. Thanks for the suggestions!
Wtf is ordered trees?