13 ms·
> I don't think this is easy, but it's not as impossible as you make it out to be. How fast are you going to come up with sorting one or two lists if you don’t
by Aeolun 6y ago
> I don't think this is easy, but it's not as impossible as you make it out to be.
How fast are you going to come up with sorting one or two lists if you don’t already know this is an option?
If I ever run into a situation where I need to do it in real life, it takes me all of two seconds to find, so the only thing being tested is if I’ve ever done that before (and still remember).
- 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.