NUMBER OF WEAK CHARACTERS IN THE GAME | LEETCODE # 1996 | PYTHON BUCKET SORT SOLUTION

  Рет қаралды 2,392

Cracking FAANG

Cracking FAANG

Күн бұрын

In this video we are solving an intersting Google interview question that deals with the quite uncommon but very cool solution pattern of Bucket Sort: Number of Weak Characters in the Game (Leetcode # 1996).
This question can easily be solved using a standard sort algorithm quite easily but there's a neat little way you can use bucket sort here to bring down the time complexity down to linear.

Пікірлер: 7
@varunshrivastava2706
@varunshrivastava2706 Жыл бұрын
The best explanation out there, sad to see that people are not acknowledging your efforts. Loved every part of the video from you choosing to code it in python to breaking down the time complexity part which not many tech youtuber do. Keep up the good work!!!!
@crackfaang
@crackfaang Жыл бұрын
No problem, that’s what I’m here for. The channel growth will come over time, the growth will be exponential soon. Just need to keep creating content and try to cater the videos for a broader audience (hence the system design series)
@varunshrivastava2706
@varunshrivastava2706 Жыл бұрын
@@crackfaang keep up with this spirit.
@user-yj2ju9up8o
@user-yj2ju9up8o Жыл бұрын
Thanks for the explanation. I came here to find optimal solution, and I got it with very clean and easy to follow instruction.
@sharathkumar8338
@sharathkumar8338 Жыл бұрын
wow. Awsome 💌
@ruturajchintawar4649
@ruturajchintawar4649 9 ай бұрын
Hello there! Your explanation was fantastic, but I'm a bit confused about what happens when duplicate keys are encountered. I found it challenging to address this particular scenario.
@aaditya_87
@aaditya_87 4 ай бұрын
hashmaps wont have duplicate keys
FIRST MISSING POSITIVE | LEETCODE # 41 | PYTHON SOLUTION
24:12
Cracking FAANG
Рет қаралды 834
1996. The Number of Weak Characters in the Game
10:55
Tech Adora by Nivedita
Рет қаралды 4,5 М.
HOW DID HE WIN? 😱
00:33
Topper Guild
Рет қаралды 40 МЛН
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 21 МЛН
EXCLUSIVE TIME OF FUNCTIONS | LEETCODE 636 | PYTHON SOLUTION
15:42
Cracking FAANG
Рет қаралды 3,8 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 795 М.
SHORTEST WAY TO FORM STRING | LEETCODE 1055 | PYTHON GREEDY SOLUTION
9:21
1996. The Number of Weak Characters in the Game (Leetcode Medium)
13:40
Programming Live with Larry
Рет қаралды 1 М.
Опыт использования Мини ПК от TECNO
1:00
Андронет
Рет қаралды 768 М.
Как правильно выключать звук на телефоне?
0:17
Люди.Идеи, общественная организация
Рет қаралды 740 М.
Samsung Galaxy Unpacked July 2024: Official Replay
1:8:53
Samsung
Рет қаралды 23 МЛН