Data Structures in Javascript ( Merge Sort Algorithm ) | Frontend DSA Interview Questions

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ม.ค. 2025

ความคิดเห็น • 17

  • @RoadsideCoder
    @RoadsideCoder  ปีที่แล้ว

    ➡ Download my DSA with JS E-Book - topmate.io/roadsidecoder/491565
    👤 Join the RoadsideCoder Community Discord - discord.gg/2ecgDwx5EE
    🟪 Follow me on Instagram and u will clear your interview 🤓 - instagram.com/roadsidecoder/

  • @sudiptamukherjee8216
    @sudiptamukherjee8216 ปีที่แล้ว +3

    Agayaaa video 🎉🎉🎉🎉

  • @3minutesbibletruth
    @3minutesbibletruth ปีที่แล้ว

    I have followed you for a very long time and I have learn't a lot

  • @3minutesbibletruth
    @3minutesbibletruth ปีที่แล้ว

    I really like the content u producing here. It makes your channel unique keep up with the good work for us

  • @sarthaksharma9322
    @sarthaksharma9322 7 หลายเดือนก่อน +1

    Great video as always, but I'm confused about why the time complexity of the merge function comes out to be O(n). Since we are doing a shift operation inside the while loop, won't it be O(n^2)? Imagine while loop running for n times (it'll run for x times, where x is the minimum of the lengths of 2 arrays that we are merging), and then for each of that iteration, along with a simple push operation (which completes in O(1), we are also doing two shifts, which are completed in O(n)), so won't the complexity of the merge function turn out to be O(n^2) with this approach?

  • @aditya.agrawal
    @aditya.agrawal ปีที่แล้ว +2

    Hi @RoadsideCoder, you must subtract 1 from the mid after getting floor value as the array index starts from 0. Thanks.

    • @abdullas3640
      @abdullas3640 10 หลายเดือนก่อน +1

      yeah thats true , slice () function is doing the work here 🙂

  • @sukhpreet27
    @sukhpreet27 ปีที่แล้ว

    EAGERLY Waiting for the video on
    Classes
    Design Patterns
    And interview questions on above.

  • @arytiwa4351
    @arytiwa4351 25 วันที่ผ่านมา +1

    you should have dry run it once

  • @jp_flicks
    @jp_flicks ปีที่แล้ว

    Hey Piyush, I downloaded your E-book but I am unable to open it, I don't know what is the file type, but it's not getting opened.

    • @RoadsideCoder
      @RoadsideCoder  ปีที่แล้ว

      Please contact me on instagram @roadsidecoder

  • @tarundurbha5398
    @tarundurbha5398 ปีที่แล้ว

    Plz let us know whether your DSA sheet contains the answers as well or not

    • @RoadsideCoder
      @RoadsideCoder  ปีที่แล้ว

      I have explained how to find answers with multiple different approach if u get stuck

    • @tarundurbha5398
      @tarundurbha5398 ปีที่แล้ว

      Ok ,I will check ,As you said this sheet is for front end developers As you know the most happening library in F.E is React Js so people like me mostly expect most asked meta F.E interview questions included completely in this DSA sheet

  • @premsingh6967
    @premsingh6967 ปีที่แล้ว

  • @ChandujobsApplications
    @ChandujobsApplications 6 หลายเดือนก่อน

    bro you should not use inbuilt functions for interviews

  • @patelronak153
    @patelronak153 ปีที่แล้ว

    😍🚀