➡ 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 🔥
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!
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.
@RoadsideCoder please create a video on class, constructor, new, polymorphism, encapsulation, abstraction, etc. with example It will help us in the system design interview
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().
➡ 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 🔥
Plz, make videos on class, constructor, new keyword, and all about the class patterns.
It's amazing to understand stack without thinking that, stack is complicated topic 🎉
totally agree!
I like ur preciseness. No rants only quality content
Thanks, Please do share with others!
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!
Amazing!
Sir , please make a video on class, constructor, super keyword, new keywords with input output questions and concepts
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.
roadside heroo ♠️
❤️🔥
Excited 🥳🥳
Sir I watch your videos it's really helpful for me keep it up sir please make a video on map and set questions
Please add more video on this playlist ❤
This is just awesome.. ❤.. hope you will add more videos
Thanks, u can check the complete course here - roadsidecoder.com/course-details
@RoadsideCoder please create a video on class, constructor, new, polymorphism, encapsulation, abstraction, etc. with example It will help us in the system design interview
Is it live? Or recorded
If you had released this video last week i would have cleared interview 😭😭😭
Oh no, whats the exact question that they asked?
@@RoadsideCoder regarding parenthesis 🥲🥲 i couldn't solve completely
Yes, would be helpful if you bring videos around classes in js.
That's the plan!
69,420 😂 , but the explanation was cool 🎉
Amazing 💖
Only one suggestion Kindly solve the Leetcode problems if possible not in one video you divide in two videos please
These all questions are from leetcode only
@@RoadsideCoder ook sorry
Good day greetings
display(){
for(let i = 0; i
This series must be completed
This series didn't get much attention, u all aren't sharing it 👀
@@RoadsideCoderthis series is top notch that’s why may be some people not sharing 😅
Yes
Thanks!
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().
Yes ia also confused at that point
Some companies don't provide js ide
I have never seen this, can you name any such company?
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
Values Showing Code
print(){
if(this.isEmpty()) return "array is empty"
return this.stack.forEach((x)=>console.log("values are :",x))
}
printStack() {
console.log(this.stack.toString())
}
render() {
if (this.isEmpty()) {
console.log("Stack is empty");
}
for (let i = this.size() - 1; i >= 0; i--) {
console.log(this.stack[i]);
}
}