LeetCode Madness

Bloomberg / Eng F.U. money
Sep 18 38 Comments

I was asked to implement LFU cache in a phone interview. 🤣 Regurgitted the O(1) design in minutes but couldn’t finish coding all the edge cases and got rejected. Could have probably finished if I didn’t have to keep up with the phone screen narrative. Are they hoping a professional peogrammer eventually applies to their obscure hedge fund?

300 LC

comments

Want to comment? LOG IN or SIGN UP
TOP 38 Comments
  • Netflix rAcC67
    You just got a bad interviewer. There’s loads of inexperienced interviewers out there. Manager says they want top talent and noobie interviewer translates this as “ask harder questions”.

    LC is a curse. Just think about how much harder it’ll be a few years from now.
    Sep 18 1
    • Bloomberg / Eng F.U. money
      OP
      You’re spot on Netflix!
      Sep 18
  • Uber oupipjoh
    I would say the problem comes when a junior interviewer interviews a someone for a level above them! They want to play it out how is this person so special compared to me and I can’t let in this guy in my team to mentor me. Lot of times I see EMs depend on these junior folks to interview very senior guy and it’s not fair. If I apply for L5 I should be interviewed by a senior L5 or L6 and then it makes sense. LFU is very hard for phone screen and even for onsites.
    Sep 18 3
    • Cerner / Eng oHVC62
      Also the third party companies used for scheduling phone screens have made these phone screens harder than usual.
      Sep 18
    • Oracle R2d2c3p0
      Ditto. I got matched to a junior member on a phone interview at splunk and I could see it in their tone that this interview isn’t going to work . Companies need to have interview training before they ask folks to take interviews
      Sep 18
    • Bloomberg / Eng F.U. money
      OP
      Absolutely. I get fresh out of college kids interviewing me that can’t describe what that do because they’ve never really done anything meaningful. Probably have written at most a couple of thousand lines of code in their career. I write 100k+ per year and retire even more.
      Sep 18
  • Amazon onmgccg
    no longer liking bloomberg?
    Sep 18 2
    • Bloomberg / Eng F.U. money
      OP
      No, not happy here. Manager is a prick. Can’t keep carrying him basically for free while get gets all the credit.
      Sep 18
    • Amazon onmgccg
      But u already have FU Money
      Sep 18
  • OpenTable l33tmonkey
    Not surprised 😁even if it was the initial warm up question for the real question to follow up. Phone screen are crazy these days
    Sep 18 3
    • Cerner / Eng oHVC62
      Can second that, I had interviewed for wayfair and they asked system design, sql and lc hard (25 mins) for phone screen. I did a redo and this time they asked a hard graph problem with follow ups on top of system design questions. I guess these days outside of FAANGMULA they probably do not want to fly you over unless you can regurgitate the optimal solution in 30 minutes.
      Sep 18
    • New mLDS69
      @Cerner which position and level?
      Sep 18
    • Cerner / Eng oHVC62
      It was a senior software engineer position
      Sep 18
  • Google / Eng cigsinside
    Counter point: you answering a memorized solution could be the reason you got rejected. They're more interested in hearing how u think about it than they are in seeing that you know the solution. Solving is a big plus, but only if you actually solved it.
    Sep 18 3
    • LinkedIn jjhvcvj
      I think this only matters for good interviewers or most google interviewers . Most interviewers I've had didn't give a shit when I was talking
      Sep 18
    • Bloomberg / Eng F.U. money
      OP
      LRU and LFU were the first LC problems I’ve ever done so it took me a bit to recall from six months ago. The problem was not passing the tests. When another hedge fund asked me to find the median of two sorted arrays (another LC hard) over the phone, they didn’t mind that I went straight to the most optimal solution.

      I think it’s a newbie mistake to think that interviewers expect you to stumble for a while before figuring out how to solve something.
      Sep 18
    • Google / Eng cigsinside
      Did you pass that interview?
      Sep 19
  • Amazon ineffable
    “new LinkedHashMap()”
    Sep 18 3
    • Amazon enjias
      You have to pass constructor arguments to enable it
      Sep 18
    • Amazon ineffable
      Guess I failed :(
      Sep 18
    • Amazon enjias
      Nah, in one interview I told the interviewer that I don't learn API by heart, so I just looked it up in javadoc and passed.
      Sep 18
  • Capital One / Mgmt
    🔥InTheHole

    Capital One Mgmt

    BIO
    I love people!
    🔥InTheHolemore
    Sometimes it’s about the process rather than the solution. I have a specific question that you won’t find on LC or some such but it’s a hard problem if you don’t have problem solving skills, very easy if you do. Solving the problem is a bonus but if you can show your work and communicate your thoughts you will get an on-site. Work on your problem solving process!
    Sep 18 0
  • This comment was deleted by original commenter.

    • Qualcomm / Eng qcomSam
      Amazon is not hard on LC.
      Sep 18
    • HBO gogogoy
      Amazon interviews are about behavior questions not your technical skills
      Sep 18
  • LinkedIn Humphrey G
    this is also because of how the scoring is set up for interview questions. For L5+, the expectation is ‘clean, modular, code’. How the F do I write clean modular if I’m solving something for the first time. Thinking and creativity is a messy process.

    Also its interviewer bias against your <insert-parameter-here>. I know many interviewer go in with a ‘this person is a reject’ mindset (Indians and Chinese) based on your resume/school/current company. Extremely hard to change that.
    Sep 18 6
    • LinkedIn Humphrey G
      Yep, one look at the resume is usually enough. Everyone has their ‘type’. So do you. And I never claimed you reject everyone from a certain ethnicity. You make it hard for them to succeed. Near perfect or ‘good enough’ is good enough with someone you connect well. However, if the applicant is atypical, you want ‘perfect’.
      Sep 18
    • Amazon enjias
      I connect well with a person if he is smart and I like his thinking process. Not because I like or dislike his color. May be you are just judging everyone based on yourself.
      Sep 18
    • LinkedIn Humphrey G
      No, you don’t let people in due to their thinking process anymore. Maybe amazon does it. But for other comps You need clean code. That’s the point I made originally and that’s the reality.

      If the candidate comes up with (near)perfect code, it’s easy on everyone. If not, that’s where (unconscious) biases come in.
      Sep 18
    • Amazon enjias
      May be you are right, everyone is different. I didn't conduct many interviews, so I am not going hard on a person, no one is perfect especially under stress.
      Sep 18
    • New mLDS69
      Does a good school harm you or help you?
      Sep 18
  • Bloomberg FML<GO>
    300 LC or TC?
    Sep 18 0
  • Bloomberg 💰<go>
    Citadel took you for a ride?
    Sep 18 0
  • Microsoft / Eng kwodk
    yes its soooooo difficult to crack interviews nowadays, LC Hard everywhere
    Sep 18 0
  • Cisco tuesdabluz
    Which company
    Sep 18 0
  • Agreed. LC is a curse
    Sep 18 0
  • Chase PartyBoat
    I think that’s bbg fav qts to asked over phone
    Sep 18 1
    • Microsoft / Eng
      leetcodexo

      Microsoft Eng

      BIO
      Senior Software Development Engineer
      leetcodexomore
      yeah maybe they've expected OP to know the answer 😂
      Sep 19

Salary
Comparison

    Real time salary information from verified employees