Leetcode 3. Longest Substring Without Repeating Characters

  Рет қаралды 72,924

Code with Alisha

Code with Alisha

Күн бұрын

Пікірлер: 75
@mappa5431
@mappa5431 2 жыл бұрын
Your explanation is the only one that i fully understood out of many videos on KZbin for this leetcode question . Thank you so much! keep up the good work ;)
@arshdeep011
@arshdeep011 2 жыл бұрын
underrated channel ,,your code and explanations are always very easy to understand makes a difficult question easy :)
@noober7397
@noober7397 2 жыл бұрын
By far the best explanation of this problem!
@11_h_sudhanshukumar22
@11_h_sudhanshukumar22 2 жыл бұрын
Awesome explanation , after spending 2-3hr on yt i found this video. Thanks.
@psychology6131
@psychology6131 8 ай бұрын
after 2 hours your explaination helps me to understand the logic.Many many thanks from my heart
@AbhishekKumar-zl1ho
@AbhishekKumar-zl1ho Жыл бұрын
14:32 What if the element that has to be deleted is not on s[end]. for example, as on 8:21, end is on a, but we have to delete the b char from the set, how this 14:32 statement is taking care of this case.
@Viralmems_xyz
@Viralmems_xyz Жыл бұрын
because we are not increment the start pointer so again check for start
@Kamzmal
@Kamzmal 5 ай бұрын
thank you Alisha for explaining this,literly no one can explian better than you..I have seen many youtubers but you are different ,keep it up..
@IllIIIIIIllll
@IllIIIIIIllll 2 жыл бұрын
Thanks🤓, and congrats on reaching 5k subs 🔥.
@RISHABHSINGH-zz4ej
@RISHABHSINGH-zz4ej Жыл бұрын
Indeed you don't have much resourses but still your video content is awesome. Please keep posting such videoes. I will definitely like to contribute for your channel whenever i get placed.
@RiteshYadav-m6v
@RiteshYadav-m6v 10 ай бұрын
Thank you for the nice explanation the way you explained the problem literally i felt like it was very understable and simple ...hats off to you!!
@ASHUTOSHSHARMA-us6hd
@ASHUTOSHSHARMA-us6hd 7 ай бұрын
i am studying from your channel, you are the only hope for dsa. Thanks for such amazing content
@madhabtripathy8691
@madhabtripathy8691 2 жыл бұрын
Your Explanation is so amazing, after understand the approach i am able to solve the question 🙏
@adnanaslam8068
@adnanaslam8068 2 күн бұрын
You explain very well
@BABATUNDE-h7d
@BABATUNDE-h7d 2 ай бұрын
Tysm alisha, you have no idea how useful this video was to me
@saraswatirathore3933
@saraswatirathore3933 2 жыл бұрын
The way you are explaining is amazing .
@saichaithrik7134
@saichaithrik7134 10 ай бұрын
your explanation really helped me solve a lot of leetcode problems thank you madam
@durgeshkushwaha2534
@durgeshkushwaha2534 Жыл бұрын
Very easy explanation. thank you so much ♥♥
@SweetSona-om8mt
@SweetSona-om8mt 2 жыл бұрын
your videos are beginner friendly.. thank u
@apekshashinde8663
@apekshashinde8663 2 жыл бұрын
I have been searching for the best explanation for this problem since 1 month n my search ended unto you...great explanation thankyou soo much...
@venkatakalyan4953
@venkatakalyan4953 Ай бұрын
Very good explanation
@RavindraSingh-zg9eq
@RavindraSingh-zg9eq Жыл бұрын
superb job liked it ur effort really appreciate it.
@darshankalathiya8667
@darshankalathiya8667 2 жыл бұрын
very nice memmmm you are a best teacher .. Thanks For Making Good Contain : )
@neeraj-u6e
@neeraj-u6e 2 жыл бұрын
I used to think that girls are not good at coding same as driving haha ... But you are amazing ... Really better than others ... your logics are straight forward and easy to understand ... and you use data structure ... Very nice ... Love from Delhi ...
@googlebaba4045
@googlebaba4045 2 жыл бұрын
we can also do by using unorder set with less time complexity
@Goku-dk4mr
@Goku-dk4mr 25 күн бұрын
You explain better than so called driver😂😂
@nagenHARP
@nagenHARP 9 ай бұрын
Good Explanation , all case are not passed not handling if character is in between of set
@sanjusingh4842
@sanjusingh4842 9 ай бұрын
The char will be removed until it removes the duplicate element.. Try to run the code bro....
@naveenkumarmaddala7830
@naveenkumarmaddala7830 9 ай бұрын
Thanks for the video. Can you share code on Java 8 for longest substring in a given string.
@RAVIKUMAR-ef4wo
@RAVIKUMAR-ef4wo Жыл бұрын
good explanation thanks. This is short and crisp to the point. It could have been better if you could explain the intution behind to arrive at the solution.How a candidate can think if he sees similar questions without previously looking at the solution.
@rahulgautam6387
@rahulgautam6387 2 жыл бұрын
great explaination by two pointer
@pg_Nithian
@pg_Nithian Жыл бұрын
Thanks for this video you are amazing......
@harish5466
@harish5466 Жыл бұрын
Thank you very much.. I finally understood the concept 😊😊
@JackSparrow-yu9ot
@JackSparrow-yu9ot 2 жыл бұрын
U are doing great work keep it up 👍
@rkrifat5626
@rkrifat5626 Жыл бұрын
thanks apu💚
@beatsbgmabi2308
@beatsbgmabi2308 Жыл бұрын
thank you very much
@ayushranjan5535
@ayushranjan5535 2 жыл бұрын
what is the time complexity in this case
@hemantvishwakarma8751
@hemantvishwakarma8751 Жыл бұрын
Thanks
@sayedkhalil5996
@sayedkhalil5996 Жыл бұрын
great sol thanks Alisha
@shobhitagrawal4901
@shobhitagrawal4901 Жыл бұрын
thank you !
@ashvinkumhar5819
@ashvinkumhar5819 2 жыл бұрын
great explanation
@mohsinking2002
@mohsinking2002 2 жыл бұрын
Osm I was doing mistake while erasing from the set But got mistake Thank you
@subhanOther
@subhanOther 3 ай бұрын
const str = "abcabcbb"; let maxStr = ""; for (let i = 0; i < str.length; i++) { let longStr = ""; longStr += str[i]; for (let j = i + 1; j < str.length; j++) { if (longStr.includes(str[j])) break; longStr += str[j]; } if (longStr.length > maxStr.length) maxStr = longStr; } console.log("maxStr:", maxStr);
@Idukhan-jj9kc
@Idukhan-jj9kc 3 жыл бұрын
V good 👍👌👏🙌
@jayeshchaurasiya262
@jayeshchaurasiya262 2 жыл бұрын
Love uhh mam ❣️
@lokeshthecodingguy7747
@lokeshthecodingguy7747 2 жыл бұрын
what is the time complexity of this solution O(N) or something greater than this
@bhuppidhamii
@bhuppidhamii Жыл бұрын
best exp.
@arpitasur5785
@arpitasur5785 2 жыл бұрын
you're goooooody good
@FREEFIREGAMING-vw8ty
@FREEFIREGAMING-vw8ty Жыл бұрын
Thank you mam
@tusharjeena7081
@tusharjeena7081 Жыл бұрын
mam you are awesome
@OR22
@OR22 Жыл бұрын
sol in c#: public class Solution { public int LengthOfLongestSubstring(string s) { int end = 0; int start = 0; int max = 0; HashSet set = new HashSet(); while(start < s.Length) { if(!set.Contains(s[start])) { set.Add(s[start]); max = Math.Max(max, set.Count); start++; } else { end++; start = end; set.Clear(); } } return max; } }
@kanikagola9613
@kanikagola9613 6 ай бұрын
Getting wrong output for string "au". It should be 2 but I am getting 3.
@satyamgupta6030
@satyamgupta6030 Жыл бұрын
ty
@alfabinomial6183
@alfabinomial6183 2 жыл бұрын
awesome !!!!!!!
@yahooo4854
@yahooo4854 7 ай бұрын
can anybody explain why we did it==Set.end()
@namratadhobale7051
@namratadhobale7051 2 жыл бұрын
crystal clear
@chanduc2000
@chanduc2000 Жыл бұрын
how are you recording video
@reshmaparveen6679
@reshmaparveen6679 3 жыл бұрын
Tq somuch❤️❤️❤️❤️
@nehasamant7774
@nehasamant7774 Жыл бұрын
This code is not working for all the test cases
@PIYUSH-lz1zq
@PIYUSH-lz1zq 2 жыл бұрын
can you tell me the name of this playlist
@rachitbadoni5717
@rachitbadoni5717 2 жыл бұрын
❤❤❤❤
@SnapSHORT1
@SnapSHORT1 3 жыл бұрын
goddess thanks for help
@rrichard8719
@rrichard8719 Жыл бұрын
This is not a Optimum solution it will be more than O(n)
@Wepiss
@Wepiss Жыл бұрын
I love you
@nil6132
@nil6132 2 жыл бұрын
How solve in java eclipse
@amolnikam1840
@amolnikam1840 Жыл бұрын
There is a bug in your code. Please correct that.
@creationtechz7408
@creationtechz7408 2 жыл бұрын
Wow I understand completely.
@creationtechz7408
@creationtechz7408 2 жыл бұрын
I thought that it is java until I realized that it is C++, please include C++ in title.
@subhradipbarik2032
@subhradipbarik2032 2 жыл бұрын
nice
@arpitasur5785
@arpitasur5785 2 жыл бұрын
its time complexity is?
@ShivamShukla-op2iq
@ShivamShukla-op2iq 2 жыл бұрын
time: O(n) space: O(n) where n is the no. of characters in the string.
@pg_Nithian
@pg_Nithian Жыл бұрын
Arshdeep Singh Arshdeep Singh 2 months ago underrated channel ,,your code and explanations are always very easy to understand makes a difficult question easy :) Code with Alisha Reply Satish Gollu Satish Gollu 4 months ago Underrated Channel.. The way you explain the concept is simply splendid. Thanks much for your time and effort. Code with Alisha Reply Madhab Tripathy Madhab Tripathy 1 month ago Your Explanation is so amazing, after understand the approach i am able to solve the question 🙏 Code with Alisha Reply Noober7 Noober7 3 months ago By far the best explanation of this problem! 1 Code with Alisha Reply Ooo Mr. Ki Beautiful Miss Ooo Mr. Ki Beautiful Miss 5 months ago (edited) I used to think that girls are not good at coding same as driving haha ... But you are amazing ... Really better than others ... your logics are straight forward and easy to understand ... and you use data structure ... Very nice ... Love from Delhi ... 1 Code with Alisha Reply Saraswati Rathore Saraswati Rathore 9 months ago The way you are explaining is amazing . Code with Alisha Reply Sweet. Sona Sweet. Sona 3 months ago your videos are beginner friendly.. thank u 1 Reply Abenezer Getachew Abenezer Getachew 3 months ago Your explanation is really good! Code with Alisha Reply 11_H_sudhanshu kumar 11_H_sudhanshu kumar 1 month ago Awesome explanation , after spending 2-3hr on yt i found this video. Thanks. Code with Alisha Reply Apeksha Shinde Apeksha Shinde 6 months ago I have been searching for the best explanation for this problem since 1 month n my search ended unto you...great explanation thankyou soo much... Code with Alisha Reply Jack Sparrow Jack Sparrow 7 months ago U are doing great work keep it up 👍 Code with Alisha Reply Logan Logan 6 months ago (edited) Thanks🤓, and congrats on reaching 5k subs 🔥. Code with Alisha Reply Namrata Dhobale Namrata Dhobale 5 months ago crystal clear Code with Alisha Reply ayush ranjan ayush ranjan 6 months ago what is the time complexity in this case 1 Reply Ashvin Kumhar Ashvin Kumhar 7 months ago great explanation Code with Alisha Reply Rahul Gautam Rahul Gautam 6 months ago great explaination by two pointer Code with Alisha Reply GoogleBaba(404) GoogleBaba(404) 2 months ago (edited) we can also do by using unorder set with less time complexity Reply Muhammad Mohsin Muhammad Mohsin 4 months ago Osm I was doing mistake while erasing from the set But got mistake Thank you Code with Alisha Reply Darshan Kalathiya Darshan Kalathiya 6 months ago very nice memmmm you are a best teacher .. Thanks For Making Good Contain : ) 1 Code with Alisha Reply NIThian NIThian 5 minutes ago Thanks for this video you are amazing...... Reply Alfa Binomial Alfa Binomial 3 months ago awesome !!!!!!! Code with Alisha Reply Rishabh Sharma Rishabh Sharma 2 months ago Java Code : class Solution { public int lengthOfLongestSubstring(String s) { int end = 0; int start = 0; int max = 0; HashSet set = new HashSet(); while(start < s.length()) { if(!set.contains(s.charAt(start))) { set.add(s.charAt(start)); max = Math.max(max, set.size()); start++; } else { end ++; start = end; set.clear(); } } return max; } } Reply Lokesh :The Coding Guy Lokesh :The Coding Guy 6 months ago what is the time complexity of this solution O(N) or something greater than this Reply Idukhan 7239 Idukhan 7239 1 year ago V good 👍👌👏🙌 Code with Alisha Reply PIYUSH PIYUSH 7 months ago can you tell me the name of this playlist Reply Creation Techz Creation Techz 9 months ago Wow I understand completely. 1 Code with Alisha Reply 1 reply Arpita Sur Arpita Sur 5 months ago you're goooooody good Code with Alisha Reply Stranger Is Talking Stranger Is Talking 7 months ago where did you placed in which company? Reply SUBHRADIP BARIK SUBHRADIP BARIK 6 months ago nice Code with Alisha Reply Reshma Parveen Reshma Parveen 1 year ago Tq somuch❤❤❤❤ Code with Alisha Reply Rachit Badoni Rachit Badoni 4 months ago ❤❤❤❤ 1 Code with Alisha Reply Shobhit Vijay Shobhit Vijay 1 year ago goddess thanks for help Code with Alisha Reply nil nil 2 months ago How solve in java eclipse Reply Jayesh Chaurasiya Jayesh Chaurasiya 2 months ago Love uhh mam ❣ Reply Arpita Sur Arpita Sur 5 months ago its time complexity is?
@Vlogsbydaljeet
@Vlogsbydaljeet Жыл бұрын
nice
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 8 МЛН
Thank you Santa
00:13
Nadir Show
Рет қаралды 36 МЛН
Leetcode 5. Longest Palindromic Substring
23:52
Code with Alisha
Рет қаралды 49 М.
Longest Repeating Character Replacement - Leetcode 424 - Python
20:44
C Programming Tutorial for Beginners
3:46:13
freeCodeCamp.org
Рет қаралды 14 МЛН