No video

Here's How to use a HEAP | Top K Frequent Elements - Leetcode 347

  Рет қаралды 12,629

Greg Hogg

Greg Hogg

Күн бұрын

leetcode, coding interview question, data structures, data structures and algorithms, faang

Пікірлер: 19
@GregHogg
@GregHogg 7 ай бұрын
Master Data Structures & Algorithms For FREE at AlgoMap.io!
@tejakovvuri3042
@tejakovvuri3042 2 ай бұрын
Learnt heap with a single short 😂, kudos to you.
@danielshin2047
@danielshin2047 8 ай бұрын
Epic 😎 I love your shorts. Nice elegant code
@GregHogg
@GregHogg 8 ай бұрын
Thank you!
@KunalSingh-ol6zx
@KunalSingh-ol6zx 8 ай бұрын
Unordered_map is good choice?
@Ford-ju9yr
@Ford-ju9yr 4 ай бұрын
Why not O(n+k×ln(k))?
@Ford-ju9yr
@Ford-ju9yr 4 ай бұрын
Also in the beginning you say you solved it in O(n). Why bother with slower solution?
@millfreedom
@millfreedom Ай бұрын
@@Ford-ju9yrfor k
@QwDragon
@QwDragon 8 ай бұрын
Counter has most_common method.
@GregHogg
@GregHogg 8 ай бұрын
Yeah! :)
@cillwish
@cillwish 8 ай бұрын
What is counter time complexity
@GregHogg
@GregHogg 8 ай бұрын
O(n)
@prawnydagrate
@prawnydagrate 8 ай бұрын
lmao what else do u think it could be it literally just adds 1 for each occurrence
@GregHogg
@GregHogg 8 ай бұрын
It uses a dictionary, which is hashing
@deeps-n5y
@deeps-n5y 6 ай бұрын
@@prawnydagrate what's in it to laugh? someone asked a question, if you can answer it then do it else move on!
@MurderByProxy
@MurderByProxy 8 ай бұрын
I cant take this dude seriously… first he codes on python and then his voice breaks lol
@anova3607
@anova3607 8 ай бұрын
Post a video of you speaking then tough guy
@6hbaufhehdj
@6hbaufhehdj 8 ай бұрын
What would you code in? You do know that if you can code in one language you have the ability to code in another language you just need to learn the syntax …
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 467 М.
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 201 М.
Underwater Challenge 😱
00:37
Topper Guild
Рет қаралды 42 МЛН
Kind Waiter's Gesture to Homeless Boy #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 16 МЛН
Joker can't swim!#joker #shorts
00:46
Untitled Joker
Рет қаралды 41 МЛН
Nurse's Mission: Bringing Joy to Young Lives #shorts
00:17
Fabiosa Stories
Рет қаралды 6 МЛН
Starting a Career in Data Science (10 Thing I Wish I Knew…)
10:42
Sundas Khalid
Рет қаралды 184 М.
Top K Frequent Elements - Bucket Sort - Leetcode 347 - Python
13:13
Top 50 Most Asked JavaScript Logical Interview Questions || Must Watch🤯😱
1:09:02
LeetCode: The Worst Thing to Happen to Software Engineering
8:03
Coding with Dee
Рет қаралды 119 М.
Should You Learn PYTHON or JAVASCRIPT in 2024?
13:59
Internet Made Coder
Рет қаралды 18 М.
Top 7 Algorithms for Coding Interviews Explained SIMPLY
21:22
Codebagel
Рет қаралды 364 М.
How to Solve ANY LeetCode Problem (Step-by-Step)
12:37
Codebagel
Рет қаралды 190 М.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 282 М.
Most Common Concepts for Coding Interviews
6:08
NeetCode
Рет қаралды 306 М.
Underwater Challenge 😱
00:37
Topper Guild
Рет қаралды 42 МЛН