Tech IndustryMay 29, 2018
Newmooncalf

Leetcode Advice

Hey Y'alls, Studying for my upcoming Google onsite and FB screen. Grinding Leetcode, it's going well. I just took 35 minutes to solve a hard, and 20 of that was getting bogged down in an uglyass brute force before I realized I just needed to keep track of the max to the left and the max to the right of each element. Once I had that insight, only took me like 10 minutes to code it up. So, long story short, Leetcode is making me better and also making me feel a lot more confident with my interviews coming up in a couple weeks. Here's the main question, which lists are better: (1) the ones that say Top Google or FB Questions or (2) the questions tagged by company and sorted by frequency? I've been doing the former so far, and should have time to get through all of them before the interview dates. Thanks so much, I appreciate any and all advice!

Intuit dffghgcf May 29, 2018

Great! Since when are you practicing? And how many have you solved till now? Sorry, another question instead of a reply! Tia

New
mooncalf OP May 29, 2018

Hey, thanks for responding! Only really started practicing intensely with LC maybe about a week ago. Before that I was working through CTCI with pen and paper. I've done contests on HackerRank for fun though in the past so it's not super unfamiliar to me. Right now at 51/808, 24 Easy, 22 Med, 5 Hard. I've done 18/50 Top Google Questions and 23/50 Top FB Questions.

Amazon Rouhani May 29, 2018

Damn I wish I could get these insights when doing Hards and Mediums ;(

Microsoft Who? May 29, 2018

It all depend on what you want, most frequent ones are good to learn common techniques and approaches while recent company-tagged problems are most likely to be in your loop.

Informatica Infastar May 29, 2018

Aren't those two the same? I mean top questions of a company are the company tagged questions sorted by frequency. When I see it in leetfree, it shows the same.

New
mooncalf OP May 29, 2018

Not for me. For example, when I select by the Google tag and sort by frequency, the second result is "K Empty Slots", which doesn't show up in the "Top Google Questions" category. My guess is that this discrepancy is caused by one of two things. Either (1) the frequency sorting for the tagged questions is overall frequency (ie, not frequency asked at Google specifically) and/or (2) the Top Questions category is a specially curated category that might not be updated as often.

Amazon Jeff Bеzоs May 29, 2018

So just keep track of the max to the left and the max to the right of each element? Got it! Now I don’t have to study.

Bloc cerealbox May 29, 2018

We’re on the same boat. Google onsite in a few weeks and FB screen around the same time (bombed my FB screen last year so I had to wait a year to try again). I’ve being working through Elements of Programming Interviews in Java and then jumping on leetcode to solve the same problem with tests. Leetcode is definitely helping and the plan is to also do as many top questions by company (by freq) while also going through the system design questions in EPI. Best of luck!

Salesforce ErriPuvva Jun 22, 2018

Are design in epi good

Bloc cerealbox Jun 22, 2018

They’re great. Very thorough

New
ExjI22 May 29, 2018

Stop doing hard problems. Focus on medium. You will get to a point where you've literally seen the approach necessary to solve 95% of problems and have practiced them thoroughly (at around 150-170). After that, you'll be able to nail any onsite. Source: got Google, Bloomberg, Amazon, Goldman offers recently. Grind hard. You can do it!

Rockwell Collins jEOK52 May 29, 2018

What was TC for each of those offers?

New
ExjI22 May 29, 2018

230, 240, 160 (Seattle), 250, respectively

Microsoft beeboop May 29, 2018

Do u get the premium membership for leetcode or just start off with the basic (free) version?