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
DOT PRODUCT OF TWO SPARSE VECTORS - 3 SOLUTIONS EXPLAINED [PYTHON]
31:06
Русалка
01:00
История одного вокалиста
Рет қаралды 5 МЛН
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 4,4 МЛН
Каха и суп
00:39
К-Media
Рет қаралды 4,2 МЛН
BASIC CALCULATOR II | LEETCODE 227 | PYTHON SOLUTION
15:40
Cracking FAANG
Рет қаралды 16 М.
EXCLUSIVE TIME OF FUNCTIONS | LEETCODE 636 | PYTHON SOLUTION
15:42
Cracking FAANG
Рет қаралды 3,8 М.
LARGEST PALINDROMIC NUMBER | LEETCODE 2384 | PYTHON SOLUTION
14:56
Cracking FAANG
Рет қаралды 1,4 М.
NESTED LIST WEIGHT SUM | LEETCODE # 339 | PYTHON BFS SOLUTION
11:00
Cracking FAANG
Рет қаралды 4,9 М.
Зачем ЭТО электрику? #секрет #прибор #энерголикбез
0:56
Александр Мальков
Рет қаралды 57 М.
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 204 М.