316. Remove Duplicate Letters | Day 015 | Stack | Hot Interview Question🔥

  Рет қаралды 1,083

Aryan Mittal

Aryan Mittal

Күн бұрын

In this video, I'll talk about how to solve Leetcode 316. Remove Duplicate Letters
Checkout DSA-169 Series: • Aryan DSA-169 Series |...
100Days 100k Placements: • 100 Days 100K Placement
Let's Connect:
📝Linkedin: / aryan-mittal-0077
📸 Instagram: / ez.pz.dsa
📱Telegram : t.me/aryan_mittal_group
🤖 Github: github.com/aryan-0077
About Me:
I am Aryan Mittal - A Software Engineer in Goldman Sachs, Speaker, Creator & Educator. During my free time, I create programming education content on this channel & also how to use that to grow :)
✨ Timelines✨
0:00 - Problem Explanation
1:10 - Intuition
3:28 - Dry Run
9:39 - Code Explanation
✨ Hashtags ✨
#programming #Interviews #leetcode #faang #maang #datastructures #algorithms

Пікірлер: 9
@niteshkhanna690
@niteshkhanna690 5 ай бұрын
Please post these type of question daily which are very important it would be great
@jhanavikumari274
@jhanavikumari274 9 күн бұрын
best explanation for this question thank youuu
@shalinijha7359
@shalinijha7359 5 ай бұрын
where do we get that list of question from which you are using?
@Rohitsingh-ep2lo
@Rohitsingh-ep2lo 5 ай бұрын
Done
@snehaloganathan939
@snehaloganathan939 25 күн бұрын
Hi aryan please share those question excel sheet
@kishokkumars7602
@kishokkumars7602 5 ай бұрын
First like and First comment
@ARYANMITTAL
@ARYANMITTAL 5 ай бұрын
Kishok kumar ji dhanyawad 🤌🏻🫡
@kishokkumars7602
@kishokkumars7602 5 ай бұрын
@@ARYANMITTAL 😁😁
@dayashankarlakhotia4943
@dayashankarlakhotia4943 5 ай бұрын
public String removeDuplicateLetters(String s){ StringBuilder sb=new StringBuilder(); int[]cnt=new int[128]; boolean[]vis=new boolean[128]; for(char c:s.toCharArray()) ++cnt[c]; for(char c:s.toCharArray()){ --cnt[c]; if(vis[c]) continue; while(sb.length()>0&&last(sb)>c&&cnt[last(sb)]>0){ vis[last(sb)]=false; sb.setLength(sb.length()-1); } vis[c]=true; sb.append(c); } return sb.toString(); } private char(StringBuilder sb){ return sb.charAt(sb.length()-1); } } 🎉❤ beats 100%tc
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 85 МЛН
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 72 МЛН
Получилось у Вики?😂 #хабибка
00:14
ХАБИБ
Рет қаралды 6 МЛН
My little bro is funny😁  @artur-boy
00:18
Andrey Grechka
Рет қаралды 8 МЛН
Remove Duplicate Letters | Leetcode #316
14:55
Techdose
Рет қаралды 24 М.
Multiply Strings - Leetcode 43 - Python
17:44
NeetCode
Рет қаралды 58 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 608 М.
REMOVE DUPLICATE LETTERS | LEETCODE 316 | PYTHON STACK SOLUTION
18:15
Cracking FAANG
Рет қаралды 1,5 М.
5 Math Skills Every Programmer Needs
9:08
Sahil & Sarra
Рет қаралды 1 МЛН
Remove Duplicate Letters | Leetcode 316 | Stack | Day-18
21:00
Ayushi Sharma
Рет қаралды 11 М.
Jonathan Blow on Stack Tracing and Errors
16:10
Jonathan Blow Highlights
Рет қаралды 25 М.
How I Failed the Google Coding Interview (and lessons I learned)
14:24
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 85 МЛН