Dear interviewers, please stop expecting the code to pass test cases
I am interviewing for quite some time now. I came across many interviews where the interviewer doesn't necessarily care about the code. They of course want to make sure that the algorithm is efficient, but the criteria for pass/fail is binary. They will give you bunch of test cases and will expect the code to pass all the tests. Even if they agree that the algorithm is correct, if the code doesn't pass the tests, I get rejection. If passing the test cases is the criteria, give us HackerRanks. Why waste everyone's time?
Please stop doing that. In the day to day job, there are multiple sources which we can use to modify our code. We are not nervous all the time (the way we are in interview setting). We can take help from teammates. Even after that there are bugs in every single code. Then it really doesn't make sense for you to ask the candidate to run the code and check if all tests pass or not.
Yoe: 5
TC: $200k
comments
If test cases fail because of missing/erroneous logic, then yea that should be negatively judged
If the logic seems sound but tests are failing due to coding errors/bugs and neither the interviewee or interviewer easily figure it out in time, I think more leeway should be given
You might not get impressed but that's the only way you can get a big fat TC.
Because LC is bringing almost only one type of person. People who don't understand data structures well enough to only do 20-50 problems then logically solve anything else that gets thrown their way