Unwritten rules about coding interviews

Mammoth Biosciences
JCDS85

Mammoth Biosciences

JCDS85
Feb 28 51 Comments

I haven’t been interviewing for a while. Last time I interviewed was before pandemic where people still invited to onsite and write code on whiteboard. We used to pseudo run few test cases over whiteboard and that was all about in terms of debugging. If you don’t remember a function or a collection class, you can always ‘assume’ it works as you expected. Or ‘imagine’ there is a utility function doing exactly what you needed to do.

To be honest, I never been good at coding interviews. But I was able to pass half of them.

I started interviewing again after few weeks of leetcoding, at this time, I was thinking I’m the best I ever could be. I can write flawless code for mediumdifficulties and submit it to leetcode passing test cases! Yay! Wow! Big lifetime achievement !!!!

I’m dreaming for FANG and big TC and all!!!

Then I started interviews, after 10 or so interviews, rejections after rejections, I realized like the bar raised increadible high at this point. Historically We are at peak difficulty for coding interviews.

My expeirence so far,
- I got asked LC hard or even harder, even for smaller startups.
- your code MUST work. Must be complete.
- No brute force solution allowed, never.
- All test cases must pass, I failed one interview with 13 of 15 cases passed.
- Function and variable names must all be reasonable
- coding conventions must be followed for the language of choice.
- additional test cases must also past, in one case, interviewer, brought additional test cases to fail me after 10 or so cases already passed.
- time limitation, hard cut off, if you can’t finish, they don’t even allow you to tell your solution.
- Chinese interviewers always almost rejected me even if I thought I done all above. Why Chinese interviewers are too picky and they don’t tell what they are looking for?

Edit: I’m not racist. Stop hating me. On contrary, indian interviewers are fighting you to reject you. They try to find edge cases, something missing or a race condition or name it, they are chatty and try to steale mate you, they try to justify your rejection. You know you are rejected and you know why because such and such cases did not pass.

Is that how you feel or I’m the only one?

comments

Want to comment? LOG IN or SIGN UP
TOP 51 Comments
  • LinkedIn
    EthOnRaspi

    Go to company page LinkedIn

    EthOnRaspi
    With the amount of college students and competitive programmers spending hours on hours leetcoding and trying to "beat the interview game" it's no wonder the bar is so high and will continue to get higher as long as there are ways for people to prep and game the interview process.
    Feb 28 0
  • Google / Eng
    🦸hero

    Go to company page Google Eng

    🦸hero
    Actually it’s really not that high at all. It’s just that the candidate pool is filled with more people that are unprepared (trying to learn algorithms only when the recruiter sets up the interviews). Microsoft and Amazon asked questions straight off of LeetCode like LRU Cache, Swap Nodes in Pairs, 3Sum, and so on. Facebook did the same with Next Permutation and some simple binary search question both in 45 min. and it might seem challenging but if you just mindlessly read problems, you’re bound to see a duplicate.

    Google was the only one asking questions I’d never seen before with DP, but even then they still fit into the common coding interviews patterns. Even startups like GoPuff will ask a common question like Merge Intervals or some easy string question.

    It’s definitely not at an all time high if 99% of companies just rip questions that have been exposed from their question bank. The problem is again, most people don’t study until the interviews are set 2 weeks from now. Anyone who’s just seen enough questions can pass.
    Feb 28 10
    • Google / Eng
      🦸hero

      Go to company page Google Eng

      🦸hero
      I’m suggesting trying to solve it, failing to solve it, then looking at the solution and asking yourself “Why does this solution work? How does it work? How did the author of the solution think of this solution specifically? How can I think of this solution too if I completely forgot this question in a month?”

      That train of thought allows you to realize where your original thought process went wrong, and how to read the problem differently next time.
      Mar 1
    • SAS
      AOJQ16

      Go to company page SAS

      AOJQ16
      I did this with LRUCache. Before I did LC a lot I would’ve had no chance to solve this, when I got asked it in an interview although it had been months since I did on LC I remembered high level details - hashmap+DLL and was able to solve it fast. I hope to expand this to harder mediums/hards. Now no matter how much time passes confident I’ll always be able to code this out optimally
      Mar 1
  • that sounds about right for top tech companies. For problems you think you got most test cases right but still failed is probably due to additional follow up questions you didn’t have time to go over. don’t agree with the process, but that’s the reality. interviewers were told to ask 2 questions to finish in 1 hour, sometimes even 45 mins. Both working with all test cases passed for a ‘Yes’
    Feb 28 4
    • Amazon
      QMQs88

      Go to company page Amazon

      QMQs88
      No it’s 2 mediums in 35 mins actually
      Feb 28
    • Mammoth Biosciences
      JCDS85

      Mammoth Biosciences

      JCDS85
      OP
      This is very useful. It’s very clear why I’m failing. I can not even finish first LC hard question with test cases. Most of the time, not all test cases pass. Level 100, hats off 🎩. I’ll focus on speed.
      Feb 28
  • Meta
    Omniphobia

    Go to company page Meta

    Omniphobia
    I am a non white and non indian and I also try to avoid chinese interviewers as much as I can. I was extremely lucky to have 0 chinese Interviewers in my facebook interview.
    Mar 1 4
    • Apple
      89asd99

      Go to company page Apple

      89asd99
      Easy to find a diverse team? I will be joining soon and want to work with diverse people unironically.
      Mar 1
    • Mammoth Biosciences
      JCDS85

      Mammoth Biosciences

      JCDS85
      OP
      FB is very skewed to Chinese.I’m having an annual interview (and rejection) from fb and all 3 were Chinese.
      Mar 1
  • Apple
    89asd99

    Go to company page Apple

    89asd99
    Which companies have you interviewed with so far
    Feb 28 3
    • Apple
      89asd99

      Go to company page Apple

      89asd99
      Are you specifically seeking out and solving their problems before? I don't know about most of them but I know Doordash has a very limited question set and maybe even twitter
      Feb 28
    • Mammoth Biosciences
      JCDS85

      Mammoth Biosciences

      JCDS85
      OP
      I solved 20 LC medium questions and I glanced through DD questions as well, all are LC hard. I actually studied scheduling question that I was asked but studying was not enough. Interviewew did not accepted bruteforce backtracking solution. Their scheduling problem has other solutions with lesser compexity. Hard to come up with that.
      Feb 28