leetcode challenge

Intel Ice-cream
Aug 6 16 Comments

How come you guys get so good at leetcode and crack google/netflix interview in just matter of few weeks. I am struggling to keep myself motivated to do this leetcode shit. I think its a test for my consistence and perseverance more than the coding skills.

Anyone here who took more than 6 months? Please share your struggle story.

comments

Want to comment? LOG IN or SIGN UP
TOP 16 Comments
  • Goldman Sachs faith91
    This is what worked for me. I was able to crack Google, LinkedIn and Amazon. This strategy might not work for everyone!

    For DS and Algos, I never touched anything other than LC. I have practiced around 320+ questions.

    When I started practicing around a few months back, it use to take me around 20-30 mins to solve even an easy question. And I used to take a long time to solve each question but I knew that things would get easier.

    I was mainly focusing on getting my understanding of Collections and Arrays right! I would also spend a lot of time on googling which collection to use in which cases. Overtime, I started getting a good grasp of it. I started asking myself questions like how do I decide if I want to use a Priority Queue or a TreeMap?

    After 1 month, when I started feeling confident about the DS, I moved on to a bit more advanced topics like Trees, Graphs and DP because all these topics use the basic collections I had already studied. I would solved questions on these topics and the previous topics in a mixed manner (didn’t give too much importance to one topic over the other). Then, one day my friend asked me as to why I haven’t looked at the Trie DS? It was the best input ever! One of my rounds, both at Amazon and Google, focused only on Trie!

    Over a period of 2-2.5 months, I could see that I was solving easy questions in under 10 mins and medium questions in around 20 mins, on a compiler!

    Also, there is no point in keep solving new questions. it is very important that you keep revisiting your old solutions every now and then. Not only you will realize that you had forgotten quite a few solutions but also, you will realize that you have started thinking about smarter and cleaner code over time!

    P.S.- I was a C++ developer until 5 months back. Right when I made a switch to Java, was around the time I had started preparing for interviews as well. So, I had no idea how to use collections and all that. That’s why, I had to start ground up!
    Aug 6 1
    • New / Eng
      my_dream

      New Eng

      BIO
      I'm Brazilian.
      my_dreammore
      Did you receive offers from Google and Amazon?
      Sep 6
  • Intel LG75
    I can share my experience as someone who has a PhD in CS from a top 30 school (not great but decent), and worked for 10 years afterward. I failed google interviews twice because I was very slow at coding on white board. I actually perform well at work. I started practicing code interviews on interviewbit and did about 100 questions there, very slowly. Some problems took me a day to figure out, but I continued for six months.

    Then I switched to leet code. I did total 200 problems there in the course of two months. Practice on whiteboard to improve my write speed. Most are easy ones. But it makes sense to me to start with easy ones to cover many different types of problems. After a while I start to see patterns in these problems and generally unless it’s a dynamic programming or greedy problem, I can find the optimal solution fairly quickly.

    I interviewed some companies, then found I have another problem, I make too many mistakes in my implementation due to not thinking through all the details of the solution before coding. That’s the area I’m trying to improve. But I’m good enough to receive some job offers.

    Looking back at some of my old implementations from interviewbit, I can see how much my code have changed. Much more concise and clean today than 8 months ago.

    I had interviews lined up while practicing leet code. I do not recommend that. This will be very stressful. Especially if you see some problem in practice and can’t solve it in 30 min. It will bomb your confidence. Practice now without pressure and do it consistently.

    I got the cracking the coding interview book recently. The most valuable part is the 7 steps to problem solving. I highly recommend follow these strategies while practice.
    Aug 6 2
    • Goldman Sachs faith91
      “I interviewed some companies, then found I have another problem, I make too many mistakes in my implementation due to not thinking through all the details of the solution before coding.”

      This is gold. I realized I was doing the same.
      Still, in most of the cases, I was able to figure out more details after I had already solved half the question, and was still able to correct and complete the solution. But, of course, I didn’t only lose the precious time during the interviews, but also the interviewer would have deducted a few points as according to them, my thought process was not as streamlined as it should have.

      And things like these result in people getting down-leveled even when they feel that they nailed the interview.
      Aug 6
    • Intel LG75
      That’s right, only later I read in the CTCI book that she recommends a step before start coding where thinking through the implementation steps, think about all the variables needed and how they are updated. This is the key to go to next level of coding skills in interviews. It’s hard to do but that’s what I’m working to improve.
      Aug 6
  • Reliable Software / Eng YonkoKaido
    Try coding game website. 5 min coding clash in real-time with others is super addictive. Of course these questions are easy compared to leetcode but the idea is to slowly develop perseverance
    Aug 6 4
  • Oracle k-9
    6+ months is common. Keep going.
    Aug 6 0
  • Netflix / Eng
    p41

    Netflix Eng

    PRE
    Humana, Infosys
    p41more
    I didn't do any leetcode bullshit while interviewing at Netflix
    Aug 10 3
    • Intel Ice-cream
      OP
      Did you interviewed few years before? Currently leetcode is the way to go.
      Aug 10
    • New / Eng
      my_dream

      New Eng

      BIO
      I'm Brazilian.
      my_dreammore
      Is the Netflix interview more focused on System Design questions?
      Sep 6
    • Netflix / Eng
      p41

      Netflix Eng

      PRE
      Humana, Infosys
      p41more
      You can't cram for a Netflix interview. Netflix has figured out how to find if all your past experiences have prepared you to solve problems in one specific team at Netflix.
      So the interview, ideally, feels like sitting on a couch and talking about a few problems while at work with your coworkers.
      If it doesn't feel like that, then you might be interviewing for the wrong role.
      Sep 6
  • Neurocrine Atin|ay2
    For me, it's a test of both coding skills and perseverance. But the stressful part is every question seems like a new question to me, I am unable to find patterns or relate to previous questions. I also struggle a lot with writing the correct code even when I know the algorithms.

    I think of coding not as a 2 months bootcamp to crack Faang but as a skill I slowly get comfortable with. It's been a few months since I have been LCing but then my starting point was way lower than many others here.
    Aug 6 0

Salary
Comparison

    Real time salary information from verified employees