Just bombed a whiteboard coding session - worst ever in my life. I'm so rusty from 7 months off. I couldn't even remember indexOf. Getting old sucks. I meant to practice more but I got in late last night. Lesson learned.
First we talked about 20 minutes, which went well. Then the interviewer told me that he'd start easy then see how many we got through. Yay pressure. So of course I got stuck on the first problem. After about 25 minutes he basically did the coding equivalent of ushering me off the stage. I really just wanted to solve the damn problem. Of course as soon as we hung up I went and solved it.
Here's the problem I gut stuck on btw:
Code:
// return the first letter that repeats in a string
function findFirstRepeat(input) {
// code here
}
findFirstRepeat("abcdebcd") // should return "b"
findFirstRepeat("abba") // should return "a"
My solution:
I feel so stupid right now. Good thing I have another big interview in 23 minutes! No whiteboarding though I think. I feel bad for all the devs we did this too now. Although we never put that much pressure or timeboxed them like that.
Last edited by suzzer99; 07-18-2018 at 06:00 PM.