REMOVE DUPLICATE LETTERS | LEETCODE 316 | PYTHON STACK SOLUTION

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

Cracking FAANG

Cracking FAANG

Күн бұрын

Пікірлер: 8
@sarayarmohammadi3376
@sarayarmohammadi3376 11 ай бұрын
Thank you for the clear explanation! It was very easy to understand the way you explained it.
@myko_chxn
@myko_chxn Ай бұрын
Love you channel for the more niche problems. Thank you so much
@rahil6455
@rahil6455 11 күн бұрын
Great explanation thank you so much. I guess you could remove the set all together and just search through the string builder, but that would only be if you value memory more than runtime.
@aliglens
@aliglens 8 ай бұрын
great video! the space complexity is O(n) though, because its bounded by the string builder array which will have n elements in it.
@manne4795
@manne4795 7 ай бұрын
The seen set will ensure that no duplicate elements are added to the string builder array. And there are only 26 possible elements as the input string consists of only lowercase English letters. So the space complexity is O(26)=O(1)
@YT.Nikolay
@YT.Nikolay 11 ай бұрын
Hi legend, happy New Year! :)
@crackfaang
@crackfaang 11 ай бұрын
С Новым Годом :)
@YT.Nikolay
@YT.Nikolay 11 ай бұрын
@@crackfaang с новым годом my man! ;)
LONGEST CONSECUTIVE SEQUENCE | LEETCODE 128 | PYTHON SOLUTION
14:44
Next Greater Element I | Leetcode Python Solution | Python
34:11
Python Guruji
Рет қаралды 1 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 61 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 145 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Furthest Building You Can Reach - Leetcode 1642 - Python
11:08
NeetCodeIO
Рет қаралды 17 М.
Remove Duplicate Letters | Leetcode #316
14:55
Techdose
Рет қаралды 27 М.
Making an Algorithm Faster
30:08
NeetCodeIO
Рет қаралды 173 М.
Remove Duplicate Letters | Leetcode 316 | Stack | Day-18
21:00
Ayushi Sharma
Рет қаралды 12 М.
DAILY TEMPERATURES | PYTHON | LEETCODE # 739
16:18
Cracking FAANG
Рет қаралды 1,4 М.
LARGEST PALINDROMIC NUMBER | LEETCODE 2384 | PYTHON SOLUTION
14:56
Cracking FAANG
Рет қаралды 2,2 М.
Student Attendance Record II - Leetcode 552 - Python
27:10
NeetCodeIO
Рет қаралды 9 М.
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 303 М.
316. Remove Duplicate Letters | Day 015 | Stack
13:36
Aryan Mittal
Рет қаралды 2,5 М.
ACCOUNTS MERGE | LEETCODE # 721 | PYTHON SOLUTION
23:04
Cracking FAANG
Рет қаралды 12 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН