Personally, I think developing it from scratch shows more promise than memory, but a lot of employers are looking for the inverse right now, IME.
edit: and this was not a FAANG, this was a startup with a single digit number of employees!
But I think you learn an enormous amount about an engineer here. How will they use this time? What will they focus on? The details they choose to spend time on, how did they turn out?
I've seen Principals take the whole 45 minutes on system design asking extremely detailed questions and building a system far superior to anything I would have engineered myself (interviewing up level). I've seen Jrs hash out a simple database structure in 5 minutes in a comment block and spend 40 minutes writing a simple react app that shows this hypothetical data. Obviously this principal wasn't hired for their front-end knowledge and this Jr wasn't hired for their system design, but still, very valuable to see how they do it.
Reality: I want to hire 1 person, we get say 5 past all the stuff before me, we interview all 5, and then we choose the one that we think fits the best culturally, personality wise, skill wise, etc. So our reply is usually "hey you were great, we wouldn't interview you if you weren't, we just found someone we liked a little bit more". Which isn't very satisfying but you have to think about it from my perspective too. How do you choose between 5 great candidates?
Ultimately, luck is playing a massive role here https://www.youtube.com/watch?v=3LopI4YeC4I
Startups are kind of hard to get an interview at these days, you ideally should know someone already working in one, who can vouch for you. I don't feel like they have a low bar either, just less rounds.
In that case I think it's pretty clear I was rejected based on getting one answer incorrect. The phone call wasn't even that long at all.
And while other interviews have been longer, I suspect I've been rejected a few times based on me struggling with one particular Leetcode problem.
One guy didn't even let me finish it beyond five minutes of trying to figure out the recursive function, just rejected me on the call. That guy had a huge ego and I already wasn't certain I even wanted to work for him anyway (but I didn't have any other offers yet so I gave it a shot anyway), so not a huge loss there.
Did they tell you that they passed on you because of your minor imperfection in the answer? Or is this an assumption on your part?
I might have passed on you based on what you've written, but it wouldn't have been because you gave a B+ answer and I required at least an A- solution or something.
Honestly this entire concept of gamifying your interview is not great. Maybe this is what gets you in at the big shops like Microsoft or Amazon these days? Totally understand that, I'm more of in the start-up world.
In my world, we're looking at personality, attitude, problem solving. I'm not looking for a robot to regurgitate a technically perfect answer. I'm looking for a human who responds like someone would in a job. Depends on the interview (up, peer, or down in seniority), but the interview is a space to basically pair something out and work together and see if you fit with how we operate. We wouldn't want someone to come in and just regurgitate what they think is perfect. We'd prefer to pair it out, talk it through, look stuff up live, and see if there is charisma/chemistry in the working relationship and the culture. Depending on seniority of course but we can teach a Jr or Mid coding and technical material but we cannot change their personality or make them better to work with.