Daily Leetcode challenge🔥| Kth Largest Element in a Stream | Asked by Amazon, Google|In just 10 mins

Поділитися
Вставка
  • Опубліковано 5 січ 2025

КОМЕНТАРІ • 3

  • @3rd_tier-coder
    @3rd_tier-coder  4 місяці тому

    A mistake in Time complexity. Since the example for using k as 3, at that moment I said space is O(1). But actually space is variable for different test cases, depending on k. So space complexity is O(k)

  • @jatin5933
    @jatin5933 4 місяці тому +2

    hmm thumbnail changed

    • @3rd_tier-coder
      @3rd_tier-coder  4 місяці тому

      yes, yesterday question was even difficult for me. But since I already had in my mind to work on YT but question's complexity was quite high, I thought of making the thumbnail better. ;)