Top K Frequent Elements (LeetCode 347) | Neetcode 5/ 150 | Bharath Chandra (తెలుగు)

Поділитися
Вставка
  • Опубліковано 13 лип 2024
  • Hello guys, cheers to another piece of learning. Today I talked about the "Top K Frequent Elements" problem which is the first in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it.
    In the above video, I showed all the different logics with which the problem can be solved and also the codes to those logics in Python. Let me know if you got a hold of the logic?
    Link to Hashsets and Hashmaps video - • Hashsets and HashMaps ...
    Link to the problem - leetcode.com/problems/top-k-f...
    Link to Java, C++ solution - leetcode.com/problems/top-k-f...
    Link to Python Solution - leetcode.com/problems/top-k-f...
    Link to Neetcode 150 - neetcode.io/practice=
    Regular updates from me on Discord, Insta and Telegram. I post job notifications of telegram and discord
    Insta - / bharathh_chandraa
    Telegram - t.me/thebharathchandra
    Discord - / discord
    00:00 - Introduction and Problem Statement
    01:51 - HashMap step
    07:15 - Approach 2 with intuition
    13:57 - Approach 3 with intution
    22:49 - Approach 3 example
    34:46 - Pseudocode
    38:40 - Code and Conclusion

КОМЕНТАРІ • 8