#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

Комментарии • 80

  • @TechnicalSuneja
    @TechnicalSuneja  2 года назад +23

    Support this video series, not by money,but by sharing it with your friend's circle 🙏

    • @surabhkumar2643
      @surabhkumar2643 2 года назад

      Sir number send mm please

    • @sumitmishra3864
      @sumitmishra3864 2 года назад +2

      Bhaiya aap bhi bs video dalte raho views and likes to aayenge hi aise content par

    • @rohitbarate1531
      @rohitbarate1531 2 года назад

      Please make more videos on different problems

    • @shubhutech9848
      @shubhutech9848 10 месяцев назад

      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

    • @shubhutech9848
      @shubhutech9848 10 месяцев назад

      I have one more query why we have written else condition when we are getting unique value by using set

  • @dipenchavda6988
    @dipenchavda6988 2 года назад +9

    Please complete this series all the way to required concepts and questions for the interviews.

  • @suyogbankar3769
    @suyogbankar3769 2 года назад +2

    @ajay bhai regularly ese problems ke video upload karte raho..it helps a lot to improve programming logic.

  • @akashsaha9366
    @akashsaha9366 2 года назад +6

    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!!

    • @TechnicalSuneja
      @TechnicalSuneja  2 года назад +2

      Hehehe.. I think you haven’t watched complete video 🙂

    • @srujanthegoldenboy
      @srujanthegoldenboy 2 года назад +4

      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;
      };

    • @akashsaha9366
      @akashsaha9366 2 года назад

      @@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.

    • @srujanthegoldenboy
      @srujanthegoldenboy 2 года назад

      ​@@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.

    • @JohnDoe-ej6vm
      @JohnDoe-ej6vm 2 года назад +1

      I am sorry to say your understanding is wrong. i just tested the code it is accepted and passed all test cases.

  • @priyasharma8315
    @priyasharma8315 2 года назад +2

    Please continue with series. RUclips has less video with Javascript DSA

  • @abhishekjha3775
    @abhishekjha3775 2 года назад +2

    I already solved this one ! Famous Problem DP❤️

  • @shubhamnaikk8911
    @shubhamnaikk8911 Год назад +1

    brother please continue the series ... my dsa is getting good because of you

  • @AnkitaSharma-tk9gx
    @AnkitaSharma-tk9gx Год назад +2

    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.

  • @muhammadamir9145
    @muhammadamir9145 2 года назад +1

    Hi brother how are you 🥰🥰
    I'm waiting your DS & algorithms next video.....
    Advance thanks for you brother..
    I'm from Bangladesh..

  • @vguptae
    @vguptae 2 года назад +2

    please bring more videos on dsa

  • @RavindraSingh-zg9eq
    @RavindraSingh-zg9eq 9 месяцев назад +1

    how can u increment end value in else case ,buz ur dry run cases is not matching with written code.

    • @ipkaiwart
      @ipkaiwart 6 месяцев назад

      yes really not matching with written code ... what are you saying please review your video

  • @akashdhakad0715
    @akashdhakad0715 2 года назад +2

    Bhaiya please complete this series ❤

  • @typicalindiancoderwhowatch8458
    @typicalindiancoderwhowatch8458 2 года назад +2

    please complete this series, sir!

  • @Devdaskekisse
    @Devdaskekisse 2 года назад +2

    JavaScript course is usefully

  • @aezazali710
    @aezazali710 Год назад

    thanks, alot. love from Pakistan

  • @meghrajpatil3731
    @meghrajpatil3731 2 года назад +1

    Thank you 😇

  • @centauricoder
    @centauricoder 2 года назад +1

    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.

    • @mr_dharwat_ji
      @mr_dharwat_ji Месяц назад

      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.

  • @JohnDoe-ej6vm
    @JohnDoe-ej6vm 2 года назад

    pehly mujhay laga ye code sab test cases k lye applicable nai hoga. then i tested and it worked.

  • @dipakmandal3004
    @dipakmandal3004 Год назад

    great explanation 😍😍😍😍😍😍😍😍

  • @ShubhamYadav-nu5tt
    @ShubhamYadav-nu5tt 2 года назад +1

    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

  • @shreyashemma
    @shreyashemma 2 года назад

    awesome brother ,make more videos like this

  • @pookystudio6702
    @pookystudio6702 2 года назад +1

    Bhai please flutter pe video banao, Indian market me flutter ki kya opportunities hain, kya scope h...

  • @avikroy1236
    @avikroy1236 Год назад

    Mai maan gaya vai...!

  • @rohitbarate1531
    @rohitbarate1531 2 года назад

    Please make more videos on different problems

  • @anilrajmeena4373
    @anilrajmeena4373 2 года назад +1

    Bhaiya Denouncing and Throttling ka video kab tk laoge

  • @patelronak153
    @patelronak153 2 года назад

    Please make more video on DSA JS🚀

  • @sadhnasharnagat9120
    @sadhnasharnagat9120 2 года назад

    Pls make video for permutations and combinations ..

  • @wscode
    @wscode 2 месяца назад

    bhai please complete this series

  • @sushantsaud7297
    @sushantsaud7297 2 года назад

    Which language is best to learn dsa, can i used javascript

  • @royalsinghrajpoot4646
    @royalsinghrajpoot4646 Год назад

    Or videos laeye sir DSA par 👍👍🔥

  • @shoebathar4941
    @shoebathar4941 2 года назад

    Please provide some videos for linkedlist, graph, tree etc.

  • @lokeshgaria6282
    @lokeshgaria6282 Месяц назад

    bhai short video rkha kr or thoda jldi bola kr

  • @user-kg9jf9lo1x
    @user-kg9jf9lo1x Год назад

    if we want to return the string , not only length... , how we achieve this

  • @rohitpatel2671
    @rohitpatel2671 Год назад

    make on leetcode or gfg problems tutorial using javaScript

  • @shahzaibkhan5423
    @shahzaibkhan5423 3 месяца назад

    sir, ap ye kia kha rhe the parhate waqt ? 🙃

  • @anilkumarjena6793
    @anilkumarjena6793 2 года назад

    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

    • @dandendrasingh7326
      @dandendrasingh7326 2 года назад

      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.

  • @praharshtembhurne8860
    @praharshtembhurne8860 Год назад

    What is the only book you recommend for DSA Javascript?

  • @pratikparab7239
    @pratikparab7239 2 года назад +1

    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

  • @Rao_jaiswal
    @Rao_jaiswal 2 года назад

    bhaiya.. find k largest & kth largest element question pe explaination banaiye..

  • @swapnilbankar1604
    @swapnilbankar1604 2 года назад

    Upload further DSA topics bro

  • @amjadali-cs3si
    @amjadali-cs3si 2 года назад

    sir course complete kab hoga apka dsa ka

  • @RajYadav-yh7vv
    @RajYadav-yh7vv 9 месяцев назад

    bhai array ka length will be number of elements not from the zero

  • @NITINAGAM
    @NITINAGAM Год назад

    Thank you for your efforts but you seem a bit confused while explaining the logic after the coding part and the code is incomplete.

  • @dollyvishwakarm
    @dollyvishwakarm 2 года назад

    Aur bhi questions kraya plz

  • @kishorpustake6682
    @kishorpustake6682 11 месяцев назад

    18:04

  • @dhirajjaiswal2941
    @dhirajjaiswal2941 2 года назад

    Bhaiya please c++ ke sath dsa start Kar do na

    • @amjadali-cs3si
      @amjadali-cs3si 2 года назад

      bhai ypoutube bhara para hindi mai bs dsa js mai nh hai eslye fav hai

  • @ishwarnegi7759
    @ishwarnegi7759 Год назад

    This is totally wrong the value will be ["B"] at the end at the max value will be 3.

  • @Optimized_Finance.
    @Optimized_Finance. Год назад

    No English?

  • @user-xy5wz9jd6m
    @user-xy5wz9jd6m 11 месяцев назад

    Explained wrong logic when start points to 3

  • @lokeshgaria6282
    @lokeshgaria6282 Месяц назад

    Bhai tu mt hi bnaya kr ye videos pta ni kya hi h rata hua code likha h bus

  • @gouravmalik5023
    @gouravmalik5023 Год назад

    The ans is kew not wke

  • @yogeshbeldar6850
    @yogeshbeldar6850 2 года назад

    Please complete this series all the way to required concepts and questions for the interviews.

  • @mrh2281
    @mrh2281 2 года назад

    please bring more videos on dsa

  • @mrh2281
    @mrh2281 2 года назад

    please bring more videos on dsa

  • @mrh2281
    @mrh2281 2 года назад

    please bring more videos on dsa

  • @mrh2281
    @mrh2281 2 года назад

    please bring more videos on dsa

  • @mrh2281
    @mrh2281 2 года назад

    please bring more videos on dsa

  • @mrh2281
    @mrh2281 2 года назад

    please bring more videos on dsa

  • @mrh2281
    @mrh2281 2 года назад

    please bring more videos on dsa