Poll: time taken to do leetcode mediums,

Jan 20 39 Comments

Multiple choices allowed here in this poll. So if you can't solve in first try please select that option too.
#leetcode #interviews

182 VOTES MULTIPLE SELECTIONS ALLOWED
VOTE VIEW RESULT

comments

Want to comment? LOG IN or SIGN UP
TOP 39 Comments
  • Facebook / Eng prestige.
    5-10 minutes for most mediums
    Jan 20 5
    • Facebook / Eng prestige.
      Haha yea theres no need to do this much to be successful in interviews
      Jan 20
    • Intel fhbd
      prestige thank you for being supportive and honest.
      Jan 20
  • Google
    AngelPriya

    Google

    PRE
    Amazon
    AngelPriyamore
    During prep, it used to take 30m-2h to get a working solution, sometimes with the help of discussion notes.

    After a while, I started noticing patterns, and was able to solve most questions within 20-30 minutes. I practiced questions by category, so that helped.

    Practiced more, and during interviews, brought down to 15-20 minutes (solve+code). This was also the expectation of the interviewers.
    Jan 20 1
    • Ultimate Software / Eng W-2
      Same boat for me. I just started prep for the first time in my life and at the beginning I was struggling with easies. 2 weeks after I started I could pick up most easies but no mediums. One week after that (today) and I can solve some mediums with great difficulty. Not sure how linear this progress will be but I think the 6 month prep timeframe I gave myself was too generous, at this rate I may only need 3-4
      Jan 20
  • Oracle pzd
    This is blind so everyone makes 400k and solves LC medium in 5 minutes.
    Jan 20 7
    • Oracle pzd
      No I would like you to back up your 400k claim with a w2
      Jan 20
    • Cloudflare / Eng myimouto
      I took a 50% pay cut to live in tokyo, you can go to levels.fyi if you like
      Jan 20
  • Crytek herocard
    Where is the option 5 min when you need it
    Jan 20 0
  • Expedia Group tp90
    OP
    Guys I really didn't think anybody could solve these in 5-10 mins that's why didn't add. If you guys are not trolling, can you please tell us how did you get so better, or were you good at it from start.
    Jan 20 2
    • Oracle MlogN
      It's not true that no one can solve it in 5-10 mins.
      Check Google codejam finals for this year. They explain all the questions and solutions at the end of the round as well. LC mediums and even LC hard are nothing in front of those and the contestants still manage to solve around 4-5 of those super hard questions in 1.5 hours. I was blown away by the difficulty and skill there.

      But that's talking about best of the best. You can even see leetcode contests where first 200-300 people solve all 4 in much less than 1 hour.

      It needs a lot of hardwork but beyond a certain level you gotta have a high IQ too, only hardwork can't land you in a codejam final.
      But good thing is that interviews are not that hard. Most people can reach the level where they can crack Google by hardwork and commitment. And some geniuses don't even sweat while cracking it.
      Jan 20
    • Goldman Sachs fake engineer
      The best coding competition people can do some hards faster than you can read the problem out loud.

      For me personally the typing and thinking about syntax is still a bottleneck but I can usually come up with the algorithm for mediums in under a minute.
      Jan 20
  • Google 0400
    You’ll start off with solving mediums in 1-2 hours, but with enough practice (100 questions or so), you should see your time in the 30-40 min ballpark.

    If you can get it to around 20m, you won’t have issues clearing Google and Facebook.
    Jan 20 3
    • Google 0400
      I think that’s a symptom of a bigger issue because you’ll barely get one extra try to fix your bugs during an interview.

      There are some tricky questions where you end up doing tens of submissions but that shouldn’t be the norm - and definitely not for decode ways anyway :)

      Two things worked for me:

      1. Coming up with test cases and corner cases even before solving the question. This way you can validate your logic for corner cases before proceeding to code.

      2. Dry run your code before you submit. You’ll anyway have to do this during your interview so you might as well get into the habit :)
      Jan 21
    • Comcast s184je
      Thanks Google. I was contemplating changing strategy to make it more interview-like.. taking a bit longer to solve for success on first submission.
      Jan 21
  • OP dont sweat it.
    It's like running the more u do it the faster u get.
    Just have to train for it. LC doesn't require a lot of creativity. It's more of a get used to basics and keep practicing kind of thing.

    Now, will some people here troll? Definitely. But 10 mins though isn't very common, it's also not rarity.
    Jan 20 1
    • Expedia Group tp90
      OP
      Thanks for reassuring me, need this more I think. Interview questions for me have been hard level in past so couldn't code them with all test cases or optimally in an hour. I know it sucks but can't do any good. I'm not a bad programmer as such but somehow feel this software job is no more for me because of these interviews.
      Jan 20
  • Sony / Data
    iXgsmg

    Sony Data

    PRE
    King
    iXgsmgmore
    To everyone doing standard SWE LC: don't you have to look up functions on Google all the time?
    I'm just doing SQL stuff for DS and there's a rather limited amount of functions and key words to use
    Jan 20 2
    • Cloudflare / Eng myimouto
      no, but maybe if you're learning the language at the same time as you're practicing LC you would need to to do this
      Jan 20
    • Comcast s184je
      Yes for a few data structures, and only in the beginning. Python modules like heapq and bintrees for example, you're almost never going to use those in day to day SWE life. Becomes muscle memory pretty quickly.
      Jan 20
  • Microsoft Knows
    I was expected to code 2 leetcode mediums in fb on site in all 3 coding rounds, 45 mins each round, which I did. And then we had 10 mins left over for chat. So I would say it took around 10 mins after reading the question to come up with a solution and solve it. Writing on whiteboard takes longer than typing, that's why 10 mins and not 15.

    During practice, I solved around 50 questions from various topics to implement basic structures. Like bfs, dfs, hash map etc. These code should be muscle memory by end of 50 questions. Solve the same 50 questions more than once if needed. Then after you have nailed the implementation, all you need to do is to read the questions and think about algorithm in your head. If you can solve it in your head, typing and wasting time isn't something I would do. I could read and come up solutions in 5 mins for each question, and would do this with 200 questions. Took me 3 days.

    So overall, a week of strategic practice is enough to be able to solve leetcode medium questions under 10 mins. If you just start solving leetcode without a strategy in mind, then you're not learning anything new, you're just giving exam based on what you already know. That's stupid as fuck,and won't get you anywhere.
    Jan 20 2
    • TeraRecon, Inc. Rspi25
      So in FB 6 questions on-site and around 4 questions in coding challenge before on-site ?
      Jan 20
    • Microsoft Knows
      I only had 1 phone screen which had 2 medium questions before on-site.
      Jan 20
  • TeraRecon, Inc. Rspi25
    This looks like a good post to get a perspective on LC...
    Jan 20 0

Salary
Comparison

    Real time salary information from verified employees