#21 - Longest Substring Without Repeating Characters (Leetcode Medium) Interview Questions🔥
HTML-код
- Опубликовано: 11 сен 2024
- In this video , Solving Leetcode's Longest Substring Without Repeating Characters problem in Javascript. This question's been frequently asked by Amazon, Microsoft, Facebook, Google, Apple, etc.
Aao_Sikhe_Javascript (DS & Algorithms Course ) Video Course will be 100% free and will be released on RUclips. The playlist will be updated with new JavaScript tutorial videos every week. The plan is to cover all the important concepts of DS & Algorithms.
00:00 - Don't skip anything (Introduction ) 🙏
➖➖➖➖➖➖➖➖➖➖➖➖➖
Family ❤
Our Family - 112000
Like Aim - 1000
Subscribers Aim- 200,000
Subscribe to stay tuned to more fun and informative content, consider liking the video in order to vouch for quality 🤗!!
Technical Suneja Shorts⭐
► / technical suneja shorts
⭐ My Telegram Group Link:
► t.me/joinchat/...
⭐ What is CI/CD? 🤔
► ytube.io/3OqB
⭐ My Recent Project Experience | ReactJs, Gatsby framework (Front End Technologies ) 👩💻 🤔 Vlog27 ► ytube.io/3LsN
⭐ My Recent Interview Experience on Javascript
► ytube.io/3OqC
⭐ Vlog13:Support vs Development Jobs? Projects? What to choose | Coding होती भी है?🤔 | My Experience ► ytube.io/3Og8
⭐ Front End Interview Series (Modern JavaScript ES6 Tutorial by Technical Suneja )
► bit.ly/3CkjENa
⭐ Free Resouces
1) Basic Javascript ► bityl.co/7XiW
2) ES6 full course ►
* Video: ytube.io/3JDb
* Proper Documentation: bityl.co/7XnW
3) Aao_Sikhe_Javascript (DS & Algorithms Course ) ► ytube.io/3JDZ
3) Git and GitHub Training - Zero to Hero ►
ytube.io/3JDa
ytube.io/3OqD
4) ReactJS Tutorial for Beginners to Advanced ►
ytube.io/3JDc
5) Angular Tutorial for Beginners ► ytube.io/3JDv
5) Node.js and Express.js ► ytube.io/3JDd
6) HTML & CSS Tutorial ► ytube.io/3JDt
7) Final Project ► ytube.io/3JDe
🔥 Instagram ► / sunejaajay
⭐ Want Webhosting service ?
If you are planning to host your website in a very decent amount you can contact us on the given numbers.
Contact Details :
1. +91-9990131528
2. +91-8529119425
More Details (Visit our website ) ►hosting.techni...
I believe that this vlog will help you to understand better in terms of career growth.
Put your comments and share your experience with us if you like this vlog. Also if you have some suggestions then please suggest them in the comment box.
⭐ Support vs Development Jobs? Projects? What to choose
►ytube.io/3K5i
⭐ Off-Campus Job Placements Complete Roadmap ► ytube.io/3JpA
⭐ Latest IT Vlogs :
► ytube.io/3Ik9
⭐ Wednesday Episodes By Technical Suneja
► ytube.io/3FIN
⭐ Coding Stuff :
► / technicalsunejaji
⭐ ReactJS Tutorial For Beginners. :
► ytube.io/3FIL
⭐ CTC v/s IN HAND SALARY | Huge Packages Explained🤔 GOOGLE, MICROSOFT, Facebook! 🔥
► ytube.io/3FIF
⭐ Top 5 Programming languages for 2021
► ytube.io/3FIH
⭐ Best Top 5 Frontend Frameworks of 2021 for Web Development
► ytube.io/3FII
⭐ 10 Generic steps to becoming Javascript Developer | Frontend & Backend Both🔥
► ytube.io/3FIJ
⭐ Best LinkedIn Tips for Job seekers in 2021 - Proper Utilisation of LinkedIn 🔥
► ytube.io/3FIK
⭐ My Thoughts on Web Development & Mobile App Development - Which is better?
► ytube.io/3FIS
⭐ Competitive Programming vs Software Development - Where Should I Invest My Time? 🔥
► ytube.io/3FIR
⭐ My Thoughts on Mean Stack Developer - Are you looking for a FullStack Developer?🔥
► ytube.io/3FIQ
⭐ My Thoughts on Full Stack Developer - Perfect Path 🔥🔥
► ytube.io/3FIP
⭐ My RUclips equipment
1)MacBook Air ► amzn.to/2Tqj3Zz
2)LCD Screen for Coding ► amzn.to/3zeYSyi
3)SanDisk 500GB SSD ► amzn.to/3pNEArf
4)WD 1TB Normal ► amzn.to/3gr5UY9
technicalsunejaji,ajay suneja,technical suneja,longest substring without repeating characters,longest substring without repeating characters javascript,longest substring without repeating characters leetcode,longest subtring without repeating characters leetcode javascript,largest substring wihtout repeating characters,longest substring without repeating characters sliding window,hashmaps in javascript,set,Leetcode Medium,Interview Questions,DS & Algorithms Course
#datastructure #algorithms #Aao_Sikhe_Javascript
Support this video series, not by money,but by sharing it with your friend's circle 🙏
Sir number send mm please
Bhaiya aap bhi bs video dalte raho views and likes to aayenge hi aise content par
Please make more videos on different problems
let lonstr = function(s){
if(!s){
return 0;
}
let start = 0;
let end = 0;
let maxlength = 0
const unqiueValue = new Set();
while(end < s.length){
if(!unqiueValue.has(s[end])){
unqiueValue.add(s[end]);
end++;
maxlength = Math.max(maxlength,unqiueValue.size);
}
else{
unqiueValue.delete(s[start]);
start++;
}
}
return maxlength;
}
console.log(lonstr("abcabcbb"));
i have modify the code you and thanks for this tutorial this really help us
I have one more query why we have written else condition when we are getting unique value by using set
Please complete this series all the way to required concepts and questions for the interviews.
@ajay bhai regularly ese problems ke video upload karte raho..it helps a lot to improve programming logic.
Hi @suneja vaiya, as per my understanding your code is not solving problem of “pwwkew”, as the 3rd sequence it will remove the char “p”. so we will loose “p”. If you can please give screenshot for the above example with correct output!!
Hehehe.. I think you haven’t watched complete video 🙂
Akash you are right, this code is incomplete. Ye correct solution nahi hai. 'else' ka logic incomplete hai.
Jaise hi ek repeating character milgaya hame wo saare character nikalna padega Set se, from start index until we remove the duplicate character.
Below wala asli solution hai.
var lengthOfLongestSubstring = function(s) {
if(!s) {
return 0;
}
let end=0;
let start=0;
let max=0;
let unique_char_set = new Set();
while(end < s.length) {
let c = s[end];
if(!unique_char_set.has(c)) {
unique_char_set.add(c);
max=Math.max(max, unique_char_set.size);
end++;
} else {
while(unique_char_set.has(c)) {
unique_char_set.delete(s[start]);
start++
}
}
}
return max;
};
@@srujanthegoldenboy ye sahi hain!!!. Good work bro! @suneja vaiya first of all thanks for the great explanation. 1 request hain jab bhi koi leetcode ka solution karte ho na tabhi har ek test case passed, usko dikha do. Nehi to humlog ko sab test ka solition nehi samajh aata.
@@aiyushbedi you are right else ke under wala inner loop ki jaroorat nahi lag raha hai, mein test nahi kar raha hu. So you guys confirm if that works.
Either way my solution will still work with same time complexity.
Like you said the main video creator didn't explain the logic properly. He should have created proper good edge cases and explained them properly.
I am sorry to say your understanding is wrong. i just tested the code it is accepted and passed all test cases.
Please continue with series. RUclips has less video with Javascript DSA
I already solved this one ! Famous Problem DP❤️
brother please continue the series ... my dsa is getting good because of you
The answer is wrong. Your code uniqueCharatcters output is "acb" and not "abc" . And in the example, it is written that it should be a substring and not a subsequence. Please check the output substring in last which comes as acb and not abc in your code.
Hi brother how are you 🥰🥰
I'm waiting your DS & algorithms next video.....
Advance thanks for you brother..
I'm from Bangladesh..
please bring more videos on dsa
how can u increment end value in else case ,buz ur dry run cases is not matching with written code.
yes really not matching with written code ... what are you saying please review your video
Bhaiya please complete this series ❤
please complete this series, sir!
JavaScript course is usefully
thanks, alot. love from Pakistan
Thank you 😇
if we have to print a unique substring not its count then this will not work. because if we take the string ( dbcab ) and if we have to print the unique character it will print only "cab". CORRECT ME IF I AM WRONG.
I think , when it delete "b" but here we update start value does not end value, so while loops continue for end = 4 and the length of s is 5 bcz here we are not minus 1 in length. that's why it add "b" at the position of 4 then end value tobe 5 or while condition ( 5 < 5 ) false and terminate the loop.
pehly mujhay laga ye code sab test cases k lye applicable nai hoga. then i tested and it worked.
great explanation 😍😍😍😍😍😍😍😍
bhai bohot badhiya explain ki hai aapne problem bas ek request hai khana please baad me kha liya karo chap chap ki avaz bohot irritating hai
awesome brother ,make more videos like this
Bhai please flutter pe video banao, Indian market me flutter ki kya opportunities hain, kya scope h...
Sure
Mai maan gaya vai...!
Please make more videos on different problems
Bhaiya Denouncing and Throttling ka video kab tk laoge
Please make more video on DSA JS🚀
Pls make video for permutations and combinations ..
bhai please complete this series
Which language is best to learn dsa, can i used javascript
Or videos laeye sir DSA par 👍👍🔥
Please provide some videos for linkedlist, graph, tree etc.
bhai short video rkha kr or thoda jldi bola kr
if we want to return the string , not only length... , how we achieve this
make on leetcode or gfg problems tutorial using javaScript
sir, ap ye kia kha rhe the parhate waqt ? 🙃
Hii I sir I have doubt, jab program else pe aeiga start srif increase hoga 'end' increase hoga nahi , kyun ki bo if condition pe jaega nahi.to end ka position 3 rahega uske bad badhega nahi
First it will remove duplicate char in set when it is in else part and at if it will add it again to the set and then increase the end.
What is the only book you recommend for DSA Javascript?
Hi Bhaiya, Muze Infosys ka offer latter aya hai, 20 Feb ko Test aur 4 March Interview tha
But mene Jan/2022 me bhi test ke liye apply kiya tha,but due to network issue,i was not able to attend this Test
To kya ye offer letter valid rahega ,ya badme 6 month ke baad exam dene ke policy ke under muze Fired karenge
bhaiya.. find k largest & kth largest element question pe explaination banaiye..
Upload further DSA topics bro
sir course complete kab hoga apka dsa ka
bhai array ka length will be number of elements not from the zero
Thank you for your efforts but you seem a bit confused while explaining the logic after the coding part and the code is incomplete.
Aur bhi questions kraya plz
18:04
Bhaiya please c++ ke sath dsa start Kar do na
bhai ypoutube bhara para hindi mai bs dsa js mai nh hai eslye fav hai
This is totally wrong the value will be ["B"] at the end at the max value will be 3.
No English?
Explained wrong logic when start points to 3
Bhai tu mt hi bnaya kr ye videos pta ni kya hi h rata hua code likha h bus
The ans is kew not wke
Please complete this series all the way to required concepts and questions for the interviews.
please bring more videos on dsa
please bring more videos on dsa
please bring more videos on dsa
please bring more videos on dsa
please bring more videos on dsa
please bring more videos on dsa
please bring more videos on dsa