News for hackers. Stuff that matters.
Re:An interview code submission that wasn’t even submitted c... by abiogenesis on Tuesday June 09, 2020 @02:50AM (#23464346)
Fair enough, but he only said that after I typed in the code and successfully demonstrated that it passed all the test cases (it was a one to one, hands on interview).
Re:An interview code submission that wasn’t even submitted c... by yomly on Tuesday June 09, 2020 @03:22AM (#23464518)
If that fails the interview, especially in a startup interview of all places, then that's a red flag on their end. Shows lack of pragmatism, poor communication and unwillingness to embrace lateral thinking.

You came up with a working solution that fell outside the spectrum of what they were expecting. And they couldn't adapt their thinking/hiring process to that so more fool them.

In a generous interpretation of the situation they weren't a good fit for you anyway.

Re:An interview code submission that wasn’t even submitted c... by travisjungroth on Tuesday June 09, 2020 @03:23AM (#23464521)
Oh yeah, sounds like bad communication on his part.

How did you handle looking up two characters vs one? Take a pass for all the doubles first and consider those negative? Or keep a history as you loop over it?