3326. Minimum Division Operations to Make Array Non Decreasing (Leetcode Medium)

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

Комментарии • 6

  • @Algorithmist
    @Algorithmist  17 дней назад +1

    Were you able to make yours smaller?

  • @Tr3ysk1
    @Tr3ysk1 16 дней назад

    I've never heard of the Sieve 😭. Ill try and remember for next time.

  • @minhdang5132
    @minhdang5132 16 дней назад

    I got the idea of using sieve, but TLE :(

    • @minhdang5132
      @minhdang5132 16 дней назад

      I don't know that we have to put the sieve calculation outside of the class Solution, that's so weird!!!

    • @prashant6844
      @prashant6844 15 дней назад

      @@minhdang5132 You compute it once and reuse it across invocations.