Separate Black and White Balls | Leetcode 2938

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

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

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

    It was the most interesting lc problem of the October streak. Your content is Helpful... Thank you

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

    Good approach
    My approach:-
    Also we maintain a count of the number of 1's before a 0 appear in a string.
    Whenever a 0 appears we will update the minswap count with number of 1 before that respective 0.

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

    VERYYY FRUSTRATING QUESTION