Top K Frequent Elements | LeetCode

Veröffentlicht am: 09 Juni 2021
auf dem Kanal: Coding With Jaz
1,637
35

Hello friends! Today we are looking at a problem that's solved by a fixed-sized heap. The runtime analysis on this solution is pretty fun so make sure to watch it!

This video is divided into 4 parts:

Part I: Problem description and examples 0:11
Part II: Intuitive solution and runtime 1:35
Part III: Optimized solution and runtime 5:09
Part IV: Code to the optimized solution 7:55

Overall Runtime: O(nlogk)
Overal Space: O(n+k)

Similar questions:
https://leetcode.com/problems/kth-lar...
https://leetcode.com/problems/top-k-f...

Hope you enjoy this video and happy coding!

Let's be friends:
My website where I occasionally post blogs: JazWang.com
Email: CodingWithJaz@gmail.com


Auf dieser Seite können Sie das Online-Video Top K Frequent Elements | LeetCode mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Coding With Jaz 09 Juni 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,637 Mal angesehen und es wurde von 35 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!