3 ms·
> How fast are you going to come up with sorting one or two lists if you don’t already know this is an option? Why would I not know this is an option? The wor
by CBLT 6y ago
> How fast are you going to come up with sorting one or two lists if you don’t already know this is an option?
Why would I not know this is an option? The word "sorting" appears in every single study guide I've seen. It's used as part of a solution in a large number of practice problems. I'm legitimately curious about what study materials you've used that leaves you uncomfortable with sorting.
EDIT: I might've misunderstood your question. When Amazon asked me this interview question, I'd never seen it before and didn't know beforehand what to do to solve it. I thought to try sorting a list within the first minute of working on it, because that's what you do with Leetcode style problems. I had prepared before the interview, so "let's try sorting" was not a stroke of brilliance it was a basic attempt to use a common tool.