#engineering #software #amazon #microsoft #facebook #google #twitter #zillow #netflix #dropbox #snapchat #twilio #bloomberg #square #salesforce I have been leetcoding for over 2 months now. I was trying to solve these two problems all yesterday. Even after seeing the solution, I am finding it hard to understand. Both these questions are medium level problems on leetcode. I am curretly preparing for FANG. Should I expect questions with similar difficulty or just skip these? 310. Minimum Height Trees 464. Can I Win Current TC: 80k, Dallas TX.
How many did u solve ?
Concentrate only on LC easy for a month. LC easy concepts act as building blocks for LC medium
Was facing the same. I worked on LC easy for a few months, and moved to mediums, while studying up new topics everytime I came across them thoroughly. That helped a lot! Still find mediums tougher, but mostly cause my DS concepts need polishing
You need to read more on DS & A
Please suggest some resources to review basics of DSA
Those two are harder than most mediums and also not frequently asked. I highly suggest getting LC premium and working your way down the frequency list of companies you care about to avoid wasting time on tricky problems nobody will ask.
I have filtered each difficulty level by frequency. How many questions should I solve in each difficulty sorted by frequency. FYI: The two questions I posted comes in the top 300 for mediums
The more you do the better, but I would only really stress out about knowing the top ~100 overall and top ~10 for specific companies you care about. I think of LC like marathon training; you want to spend a lot of time just getting easy miles in, with occasional hard efforts.
I found EPI (element of programming interview) is very useful. It can be used as refresher on the fundementals. If you cant understand LC problem just move on and revisit in 3-5days. Dont dwell too long.
Any courses that help in same way as EPI?
For courses try Princeton algorithms (should be on Edx). It’s a gentle intro, then build up to CTCI (cracking the coding interview), EPI.
Try reading CTCI and practicing related problems as you go. Don’t move on until you understand the ds/algo
Seconding what others have said, but I focused primarily on working through the CTCI, then EPI books before moving on to leetcode and found it much easier then when I had tried to leetcode in the past
Also, those are both tricky problems so don’t beat yourself up
Thanks for being candid. One way I understand these are real hard to solve in 40 minutes but other way I’m scared some FANG would ask me. I don’t want to fail.
just give up and relegate yourself to tier 2 companies
You should review fundamentals and DSA before continuing. It is not a race. Some may take a month for FAANG-level LC. Others two years. It is about the end, not the beginning.
What are some good resources to review or build up fundamentals?
leetcode.com Forums