3 ms·
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 gi
by yankjenets 6y 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.
- artmageddon 6y agoIt is, but some interviewers can be intentionally vague.