Data Structures in Javascript ( Stack ) and Algorithms | Frontend DSA Interview Questions

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

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

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

    ➡ Download my DSA with JS E-Book - topmate.io/roadsidecoder/491565
    🔴 Complete DSA with Javascript Playlist - th-cam.com/play/PLKhlp2qtUcSZtJefDThsXcsAbRBCSTgW4.html
    ✅ Follow me on Instagram or you may fail in your interview 🤓 - instagram.com/roadsidecoder/
    If this video gets good response, I will make more DSA videos, so do share it with others 🔥

  • @ariftraideas
    @ariftraideas ปีที่แล้ว +8

    Plz, make videos on class, constructor, new keyword, and all about the class patterns.

  • @RahulKumar-ew1qw
    @RahulKumar-ew1qw ปีที่แล้ว +4

    It's amazing to understand stack without thinking that, stack is complicated topic 🎉

  • @zaidofficials
    @zaidofficials 5 หลายเดือนก่อน +1

    I like ur preciseness. No rants only quality content

    • @RoadsideCoder
      @RoadsideCoder  5 หลายเดือนก่อน +1

      Thanks, Please do share with others!

  • @ranjithasatyendra3897
    @ranjithasatyendra3897 7 หลายเดือนก่อน

    Hi Piyush Sir, I would like to thank you for uploading such amazing vidoes that too for free. This is so so good to follow! Infact it really helped me in my interview preparation. Grateful for this! I have also purchased Interview prep course of yours. It is gold!

  • @AkashGupta-fh2qf
    @AkashGupta-fh2qf ปีที่แล้ว +4

    Sir , please make a video on class, constructor, super keyword, new keywords with input output questions and concepts

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

    Amazing explanations.. beginner friendly. Please make more such videos on JS DSA. There are very few quality videos on TH-cam and yours are among the ones.

  • @abhisheklohia969
    @abhisheklohia969 ปีที่แล้ว +4

    roadside heroo ♠️

  • @dineshkumargiri1659
    @dineshkumargiri1659 ปีที่แล้ว +2

    Excited 🥳🥳

  • @PriyaNayak-xo9yg
    @PriyaNayak-xo9yg ปีที่แล้ว

    Sir I watch your videos it's really helpful for me keep it up sir please make a video on map and set questions

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

    Please add more video on this playlist ❤
    This is just awesome.. ❤.. hope you will add more videos

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

      Thanks, u can check the complete course here - roadsidecoder.com/course-details

  • @VIVEKGUPTA-zc5ui
    @VIVEKGUPTA-zc5ui ปีที่แล้ว

    @RoadsideCoder please create a video on class, constructor, new, polymorphism, encapsulation, abstraction, etc. with example It will help us in the system design interview

  • @syedFAHIM-el1wr
    @syedFAHIM-el1wr ปีที่แล้ว +2

    Is it live? Or recorded

  • @vishwas55
    @vishwas55 ปีที่แล้ว +5

    If you had released this video last week i would have cleared interview 😭😭😭

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

      Oh no, whats the exact question that they asked?

    • @vishwas55
      @vishwas55 ปีที่แล้ว +2

      @@RoadsideCoder regarding parenthesis 🥲🥲 i couldn't solve completely

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

    Yes, would be helpful if you bring videos around classes in js.

  • @avinashbiradar8834
    @avinashbiradar8834 ปีที่แล้ว +4

    69,420 😂 , but the explanation was cool 🎉

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

    Amazing 💖
    Only one suggestion Kindly solve the Leetcode problems if possible not in one video you divide in two videos please

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

      These all questions are from leetcode only

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

      @@RoadsideCoder ook sorry

  • @rishiraj2548
    @rishiraj2548 ปีที่แล้ว +2

    Good day greetings

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

    display(){
    for(let i = 0; i

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

    This series must be completed

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

      This series didn't get much attention, u all aren't sharing it 👀

    • @arthurplayz4424
      @arthurplayz4424 8 หลายเดือนก่อน

      @@RoadsideCoderthis series is top notch that’s why may be some people not sharing 😅

  • @AkashGupta-fh2qf
    @AkashGupta-fh2qf ปีที่แล้ว +2

    Yes

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

    Thanks!

  • @kavitpatel1578
    @kavitpatel1578 4 หลายเดือนก่อน +1

    Hello, I think pop() method needs to be corrected as per my knowledge. In stack we have Last in First Out architecture. So when we poping from stack the last element should be popped out not first one. but in above method we use this.stack.pop() method which pops out first inserted element. I think there should be this.stack.shift().

  • @CS_HimanshuVishwakarma
    @CS_HimanshuVishwakarma 3 หลายเดือนก่อน

    Yes ia also confused at that point

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

    Some companies don't provide js ide

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

      I have never seen this, can you name any such company?

  • @dheerajrajput6709
    @dheerajrajput6709 20 วันที่ผ่านมา +1

    Spending 3 hours to get a solution
    function isValid(str) {
    const stack = [];
    const map = {
    "}": "{",
    "]": "[",
    ")": "(",
    };
    for (let i = 0; i < str.length; i++) {
    const char = str[i];
    if (char === "{" || char === "[" || char === "(") {
    stack.push(char);
    } else if (char === "}" || char === "]" || char === ")") {
    if (stack.length === 0 || stack[stack.length - 1] !== map[char]) {
    return false;
    }
    stack.pop();
    }
    }
    return stack.length === 0;
    }
    console.log(isValid("[{{}{}}{}]")); // Output: true

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

    Values Showing Code
    print(){
    if(this.isEmpty()) return "array is empty"
    return this.stack.forEach((x)=>console.log("values are :",x))
    }

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

    printStack() {
    console.log(this.stack.toString())
    }

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

    render() {
    if (this.isEmpty()) {
    console.log("Stack is empty");
    }
    for (let i = this.size() - 1; i >= 0; i--) {
    console.log(this.stack[i]);
    }
    }