LC Test Case Trap

CACI / Eng
echoBased

CACI Eng

PRE
Boeing, Raytheon
echoBasedmore
Nov 6 3 Comments

Is anyone falling into this situation where, you try to pick off an Easy/Medium question that you have good intuition about how to solve, only to find that many minutes later, you're stuck in test case hell trying to account for edge cases you never saw coming?!

I just wanted a "quick" win. Now I have to solve this because I can't let this question beat me.

comments

Want to comment? LOG IN or SIGN UP
TOP 3 Comments
  • Merge k sorted lists but k-1 of them are empty
    Nov 6 0
  • Boeing / Legal
    EternalPIP

    Boeing Legal

    PRE
    Knights of Columbus, Rocket Fuel
    EternalPIPmore
    Usually if it's some weird edge case I don't bother. If my intuition was correct and it's the optimal solution AND I've accounted for the expected edge cases I just let it go. My goal is to pass interviews and the interviewer is not gonna give me that weirdo random edge case that leetcode is.
    Nov 6 0
  • Fannie Mae sDEB48
    All the time, what you’re describing is my hell.
    Nov 6 0

Salary
Comparison

    Real time salary information from verified employees