Find if Array Can Be Sorted | Leetcode

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 2

  • @paraskashyap7362
    @paraskashyap7362 2 дні тому +1

    When entering a new segment we do not know the min of that segment as we have not traversed it yet so I can we compare it with previous max?

    • @ethostypos
      @ethostypos  День тому

      Yes, we can do that. It would work that way also.