Remove Duplicates from Sorted Array II | Leetcode 80 | Array

  Рет қаралды 40,511

Ayushi Sharma

Ayushi Sharma

Күн бұрын

Пікірлер: 96
@debjeetmukherjee1297
@debjeetmukherjee1297 2 жыл бұрын
The code is : class Solution { public int removeDuplicates(int[] nums) { int i=0; for(int e=0;e
@AjayGaulia093
@AjayGaulia093 8 ай бұрын
class Solution { public int removeDuplicates(int[] nums) { int arraySize = nums.length; /** Edge case */ if(arraySize
@dbm103
@dbm103 Ай бұрын
wow! well explained. I was not getting the approach to solve this. Thanks a lot!
@AyushiSharmaDSA
@AyushiSharmaDSA Ай бұрын
Glad it helped! thank you :)
@KeshavSharma-uo2gi
@KeshavSharma-uo2gi 23 күн бұрын
Very well explained mam, it helped me a lot, pls continue making such type of videos, as it help a lot in problem solving ❤❤
@AyushiSharmaDSA
@AyushiSharmaDSA 21 күн бұрын
Sure 😊 thank you 🤗
@manishsahu6873
@manishsahu6873 2 жыл бұрын
Thanks .. When you are in doubt with the problem and your video shows up.. perfect..
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Welcome Manish, glad it was helpful :)
@adilkevin6220
@adilkevin6220 2 жыл бұрын
Your explanation is good. Please explain constraint before you move on to the solution. Many people don't bother to see the constraint which will end up in TL. By doing these viewers Space and Time Complexity concepts gets cleared
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thanks Adil, sure will explain constraints also, :)
@AnandhS-ll2uu
@AnandhS-ll2uu Жыл бұрын
thatks a lot mam....it helped me well....your explanation was nice and clear thank you once again
@AyushiSharmaDSA
@AyushiSharmaDSA 10 ай бұрын
welcome Anandh, glad you liked it :)
@prithvi3980
@prithvi3980 Жыл бұрын
Good Dry Run, Able to understand... Thanks
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
Glad it helped😊
@jamesroy9027
@jamesroy9027 2 жыл бұрын
your voice is really beautiful
@Satya-g5t
@Satya-g5t 2 ай бұрын
nice explanation, 😀
@AyushiSharmaDSA
@AyushiSharmaDSA 2 ай бұрын
Thanks! 😃
@ashishkumarshawhitchem2017
@ashishkumarshawhitchem2017 2 жыл бұрын
I use this Concept to solve LeetCode Problem -26,27,80
@PogalaHarshitha
@PogalaHarshitha Ай бұрын
thanks akka its very clear for me
@AyushiSharmaDSA
@AyushiSharmaDSA Ай бұрын
welcome, glad it was helpful :)
@shadowaj9278
@shadowaj9278 2 жыл бұрын
Just fell in love...... With your tutorials 😅
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
🙂🙂
@shadowaj9278
@shadowaj9278 2 жыл бұрын
@@AyushiSharmaDSA 😁😁, mam please bring some trie questions , struggling alot with those 😭
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
@@shadowaj9278 sure sure :)
@shadowaj9278
@shadowaj9278 2 жыл бұрын
@@AyushiSharmaDSA thank you mam
@vinayjoshi8714
@vinayjoshi8714 6 ай бұрын
Great explanation dii 🤩
@AyushiSharmaDSA
@AyushiSharmaDSA 5 ай бұрын
thank you :)
@niteenautade
@niteenautade 2 жыл бұрын
Very well explained
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thanks Niteen :)
@111rhishishranjan2
@111rhishishranjan2 Жыл бұрын
very good, very very helpful
@AyushiSharmaDSA
@AyushiSharmaDSA 6 ай бұрын
thank you, glad it was helpful :)
@shreyasg817
@shreyasg817 2 жыл бұрын
thanks ayushi great explanation 🙂🙂🙂🙂🙂
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
Welcome Shreyas, glad u liked it 🤗
@ishangujarathi10
@ishangujarathi10 Жыл бұрын
loved the intuition
@samyakagarwal1777
@samyakagarwal1777 Жыл бұрын
best explanaiton
@AyushiSharmaDSA
@AyushiSharmaDSA 6 ай бұрын
thank you, glad it was helpful :)
@Leetcore-2508
@Leetcore-2508 2 жыл бұрын
Explanation and dry run is just so perfect...!!! 👌
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thank you Siraj, glad it was helpful :)
@DarthVader678
@DarthVader678 9 ай бұрын
dry run along with explanation is indeed so important for interviews!
@basquiatttt
@basquiatttt 9 ай бұрын
Amazing that you've done it using a single loop! Good job!
@ambikaarora8736
@ambikaarora8736 2 жыл бұрын
Awesome explanation.. Thanks :)
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thanks Ambika, glad it was helpful :)
@Harshit_yt1204
@Harshit_yt1204 Жыл бұрын
great explanation.
@AyushiSharmaDSA
@AyushiSharmaDSA 3 ай бұрын
thank you Harshit :)
@ChandraShekhar-by3cd
@ChandraShekhar-by3cd 2 жыл бұрын
Thanks a lot for such a great explanation, Ayushi 😇
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Welcome Chandra, glad it was helpful 🙂
@AbhishekGupta-cr1mf
@AbhishekGupta-cr1mf 2 жыл бұрын
Ohh.. thanks Aayushi, I came from LinkedIn! BTW very good explanation skills
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Hi Abhishek, thank you so much :)
@ecs185_shaileshbharti3
@ecs185_shaileshbharti3 2 жыл бұрын
Perfect explanation 💯🔥
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thank you :)
@mdsahil2203
@mdsahil2203 Жыл бұрын
Great explanation ma'am . It was helpful for me😇
@AyushiSharmaDSA
@AyushiSharmaDSA 3 ай бұрын
thank you Sahil, glad to hear that ❤❤🤗🤗
@AnshuKumar-zn1qb
@AnshuKumar-zn1qb 2 жыл бұрын
Great explanation. It was helpful for me😇
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thank you Anshu, glad it was helpful :)
@bhaveshjhawar9532
@bhaveshjhawar9532 Жыл бұрын
thanks alot ma'am
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
Welcome Bhavesh :)
@abcdabcdabcd317
@abcdabcdabcd317 7 күн бұрын
1:38 .. 2 is single only.. 😅 like many guys in india
@reenayadav8468
@reenayadav8468 2 жыл бұрын
Thank you di 🙌
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Welcome Reena, glad it was helpful :)
@darshankalathiya8667
@darshankalathiya8667 2 жыл бұрын
very nice ..
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thanks Darshan 😊
@vishalkharadevk
@vishalkharadevk 2 жыл бұрын
New thumbnail theme looks better.
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thank you Vishal :)
@iuashrafi
@iuashrafi Жыл бұрын
Thank you
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
You're welcome😊
@rajdave7357
@rajdave7357 2 жыл бұрын
Thanks🙏🙇
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Welcome Raj, glad it was helpful :)
@sagarbora7768
@sagarbora7768 2 жыл бұрын
Hi Ayushi are we also required to change the given array ?????
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Yes Sagar, we are changing in the given array only :)
@sreeram_chenchu_kumar.8759
@sreeram_chenchu_kumar.8759 2 жыл бұрын
nice
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thanks🙂
@SambhavAgarwalBCE
@SambhavAgarwalBCE Жыл бұрын
WE CAN USE HASHMAP ALSO
@girikgarg8
@girikgarg8 2 жыл бұрын
Ma'am I wasn't able to approach this question....so should I practise more questions on two-pointers tag?
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
See this is one type of two pointer, now you know this type, if you feel that you need more practice, then you can practice more problems :)
@girikgarg8
@girikgarg8 2 жыл бұрын
Ma'am this was a sorted array.... so couldn't a binary search approach work here?
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
See binary search is done if we have to search something or if it's binary search on answer concept, so here we do not have to search, so binary search will not be useful :)
@adilkevin6220
@adilkevin6220 2 жыл бұрын
Please make a video on largest subarray with 0 sum
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Sure :)
@anandprakashchaudhary2358
@anandprakashchaudhary2358 2 жыл бұрын
Keep make video
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thanks Anand, sure :)
@ankitaburbure8142
@ankitaburbure8142 Жыл бұрын
I didn't get one thing..where in the question is given at most twice?
@safariyakm
@safariyakm 8 ай бұрын
I think you are talking abt the 26th leetcode question (unique element appears only once). But she's solving the 80th question (unique element appears at most twice).
@himanshusaha6340
@himanshusaha6340 2 жыл бұрын
Can anyone tell me is this a greedy approach???
@hahahahaha3121
@hahahahaha3121 Жыл бұрын
what does " for(auto e:nums) " means? Can you tell the topic in which it is covered
@princiagrawal1428
@princiagrawal1428 Жыл бұрын
auto is just like a common data type .... it will help u to access the elements of a data structure like here e is indicating to each element of nums
@JackCoderr
@JackCoderr 10 ай бұрын
range based loop
@apnaaddaSwaraj
@apnaaddaSwaraj 2 жыл бұрын
Mam can you teach me please from start or make a class course
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Hi, actually I can teach only through youtube as of now, Sorry :)
@priyamagarwal7754
@priyamagarwal7754 2 жыл бұрын
Ayushi sharma please make a video on Largest Rectangle in Histogram leetcode 84 and please accept request on linkedin.
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Sure :)
@plutomessi21
@plutomessi21 Жыл бұрын
didi you reply on everyone's comment
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
hey, is it a question or a statement, bit unclear 😅
@plutomessi21
@plutomessi21 Жыл бұрын
@@AyushiSharmaDSA my bad didi, it was a statement 😂 and thank you for the reply🥹
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
@@plutomessi21 Arey 🥹❤️
@bhuvi_iitkgp
@bhuvi_iitkgp Жыл бұрын
insta i'd ??]
Remove Duplicates from Sorted Array II - Leetcode 80 - Python
12:19
LeetCode in Java | Easy Question | Remove Duplicates from Sorted Array
14:49
Yay😃 Let's make a Cute Handbag for me 👜 #diycrafts #shorts
00:33
LearnToon - Learn & Play
Рет қаралды 117 МЛН
Do you love Blackpink?🖤🩷
00:23
Karina
Рет қаралды 21 МЛН
Merge Sorted Array | Leetcode 88 | Arrays
16:54
Ayushi Sharma
Рет қаралды 43 М.
⚡️NEWS | RUBLE COLLAPSE | STRIKE ON CRIMEA | PUTIN IN KAZAKHSTAN
10:34
Ходорковский LIVE
Рет қаралды 156 М.
Arithmetic Slices | Leetcode 413 | Arrays | Day-3
16:01
Ayushi Sharma
Рет қаралды 3,4 М.
Remove Duplicates from Sorted Array - Leetcode 26 - Python
10:38