Why the array is an ascending order by default?

  • 0

    This question states a sorted array, but why did it not descending order?

    I try it by a descending order, the standard answer is not correct..

    Why do not need to consider this situation?

  • 0

    For a sorted array, it is in ascending order by default. Descending order cannot be tested here since the judgement code is for ascending order.

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.