Hacker News new | ask | show | jobs
by yankjenets 2118 days ago
Because the answer should be an obvious "no it is not guaranteed to be sorted".

If the answer is yes the input is sorted, then that context should have been given in the original prompt as it is a completely different question.

1 comments

It is, but some interviewers can be intentionally vague.