For whatever reason, I see a lot of the 87 comments are quite hung up on the Sorting issue and I feel the miss the focus. As I conduct interviews I strongly prefer coding questions such as "tell me if a certain value is valid according to some random rules" than logic puzzles such as "2 kids race running back and forth; one at constant speed while the other run x2 faster there but x2 slower back. Who would win?".
You'll be amazed how many candidate simply don't know how to code because they spent their decade of career writing configuration files for example or tweaking whatever. Show me you know how to translate the requirement to a comprehensible code, because this is what you're about to get paid for.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
For whatever reason, I see a lot of the 87 comments are quite hung up on the Sorting issue and I feel the miss the focus. As I conduct interviews I strongly prefer coding questions such as "tell me if a certain value is valid according to some random rules" than logic puzzles such as "2 kids race running back and forth; one at constant speed while the other run x2 faster there but x2 slower back. Who would win?".
You'll be amazed how many candidate simply don't know how to code because they spent their decade of career writing configuration files for example or tweaking whatever. Show me you know how to translate the requirement to a comprehensible code, because this is what you're about to get paid for.