Daily Dose of LeetCode: Kth Largest Element in a Stream

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

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

  • @official_mosfet
    @official_mosfet Год назад +2

    Your content is sooo underrated.

  • @yurt-page
    @yurt-page Год назад +3

    2:16 complexity of constructor is O(1) - it doesn't matter how many elements we just save them without any iteration

  • @thoopra
    @thoopra 10 месяцев назад

    Genius

  • @worldExplorer__
    @worldExplorer__ 8 месяцев назад +1

    I've an interview tomorrow...and can't come up with that optimised approach🫥

  • @Levy957
    @Levy957 Год назад +1

    in python:
    return sorted(nums)[-k]