Stacks : Basic, STL and Implementation | Lecture 54 | Java and DSA Course

  Рет қаралды 101,859

College Wallah

College Wallah

Күн бұрын

Пікірлер
@CollegeWallahbyPW
@CollegeWallahbyPW Жыл бұрын
PW Skills Instagram-: instagram.com/pw.skills/ PW CollegeWallah Instagram-: instagram.com/pwcollegewallah/ PW Skills Twitter - twitter.com/pw__skills PW Facebook Page-: facebook.com/officialpwskills PW Linkedin Page-: www.linkedin.com/company/ineuron-ai/
@deepankarsharma7037
@deepankarsharma7037 Жыл бұрын
One of the finest videos on stack. It explains everything in detail.
@krishnanayak349
@krishnanayak349 26 күн бұрын
Bhai main sach bol raha hu ....this course is 100% better then paid course......i compared it..❤❤❤
@akashgautam583
@akashgautam583 Жыл бұрын
is video ko dekh kar meri aakhe bhar aayi 😢.... I was waiting for this lecture and also very excited.. Your Teaching style is very very good... Now, I am addicted to Your lecture.. Very very thank you sir,..❤❤❤ Sir, I downloaded your lecture then watch it.. because it save my internet..
@hopealive3013
@hopealive3013 Жыл бұрын
I watched whole lecture in 2X and at no point I paused or rewind , great and crystal clear teaching!!!
@devanshpal944
@devanshpal944 7 ай бұрын
Bhai ab is playlist ke tree wagera ke video kidhar hai
@xnsglitch6152
@xnsglitch6152 7 ай бұрын
​@@devanshpal944 eveyone is focusing on paid course... I think treee, dp wagera k lia paid course lena padega
@vcIND18
@vcIND18 3 ай бұрын
other topics are on Pw website for free
@nitindagur6969
@nitindagur6969 15 сағат бұрын
@@vcIND18 bhai link share krna mujhe nhi mil rha free wla
@ratansarkar7444
@ratansarkar7444 Жыл бұрын
I'm a student of scaler achadamy but this contents is better then my paid course
@MdArif-pc9bz
@MdArif-pc9bz Жыл бұрын
Yeah it's true brother, the videos were very helpful 🤠
@Luffy_2804
@Luffy_2804 Жыл бұрын
why did you take the paid course on the first place ?
@ashtheconqurer1782
@ashtheconqurer1782 Жыл бұрын
same brother bhai stack ka concept toh upar se gaya mera
@tricksforsolving2804
@tricksforsolving2804 6 ай бұрын
But But I saw on KZbin that scaler provide osm level of features for students
@prabhatkumar9245
@prabhatkumar9245 5 ай бұрын
Yes bro❤❤
@sh.creation.
@sh.creation. Жыл бұрын
Sir, Your way of teaching is amazing 😍. THANK YOU SIR for your efforts
@sasta_reporter
@sasta_reporter 4 ай бұрын
no one can teach better than raghav garg sir his teaching style always help me in learning thingss thankyou soo much raghav sir😇
@Luffy_2804
@Luffy_2804 Жыл бұрын
54:36 time complexity in this case will be O(n + n + 1) = O(2n+1) ~ O(n) printing will be constant time as we are counting the iteration of the while loop ie. n times inside that printing the element will be constant time , overall complexity is correct but the explanation for printing the elements is incorrect so this is for the people who are confused but the rest explanation is so good : ) really enjoying every bit of it thanks for this amazing free course
@Luffy_2804
@Luffy_2804 Жыл бұрын
1:20:30 push at bottom question solution : ) static void pushAtBottom(Stack stack , int element){ if(stack.isEmpty()){ stack.push(element); return; } int topElement = stack.pop(); pushAtBottom(stack, element); stack.push(topElement); }
@f1channel60
@f1channel60 8 ай бұрын
MAZA AA GAYA ❤‍🔥
@rishabhsharma5245
@rishabhsharma5245 9 ай бұрын
best lecture learned a lot and thank you pw team for providing us with this excellent tutorials which are way better than the paid courses and best among all you tubers
@riyagholia6200
@riyagholia6200 11 ай бұрын
respected sir , i came to your for the first time i thought i am clear with the topic recursion and doing stack with you here . bt sir you clerified my all little doubt very clearly so....thankyou so much sirr thanks alot
@anilprasad3802
@anilprasad3802 Жыл бұрын
Maza aaya sir.. kitna accha smjhte ho sir... Ek hi baar sb smjh gya.. thanku 😊
@ayansiddiqui7383
@ayansiddiqui7383 Жыл бұрын
Best lecture on Stack on KZbin+ paid courses combined!
@arvindkumarmishra7660
@arvindkumarmishra7660 Жыл бұрын
Finally wait is over, hats off to you sir !!
@VishalKumar-zd1xw
@VishalKumar-zd1xw 3 ай бұрын
2:35:52 Linked List implementation of stack size-- should be there in pop();
@motivation.9
@motivation.9 Ай бұрын
Awesome explanation of stacks ❤❤
@Danishalam1555
@Danishalam1555 5 ай бұрын
thnk you sir maja aagya aapse pdhke kabhi bhi main bore nhi hota hu bas please aap yha baki ka topic complete krwa digiye please
@rohannJhaaaa
@rohannJhaaaa 2 күн бұрын
You made my super interest on DSA From Btech till having 2.5 years of experince, I hate dsa Mza aa gya...........
@feedi_imraj2.1m43
@feedi_imraj2.1m43 4 ай бұрын
2:40:43 Sir size-- in pop function, After pop your out put came 3, before the size was 3
@ABHISHEKSHARMA-jj5jh
@ABHISHEKSHARMA-jj5jh 7 ай бұрын
best video to watch for stack
@akashvishwakarma7654
@akashvishwakarma7654 Жыл бұрын
Nice video sir Thank you😊😊
@arpangarai949
@arpangarai949 3 ай бұрын
Maza ageya ❤🔥
@_hustler_boy
@_hustler_boy 7 ай бұрын
you are my favourite teacher
@rajkapoor6166
@rajkapoor6166 Жыл бұрын
You Rock Sir
@Dr_brainco_
@Dr_brainco_ Жыл бұрын
MAZZAA AA GYA '😀😀🔥🔥🔥🔥🔥🔥🔥
@marvelanddisneyworld3141
@marvelanddisneyworld3141 9 ай бұрын
maazaa aa gya Sir..🤩😍😍😍
@prithukathet193
@prithukathet193 6 ай бұрын
wow. Amazing. Thank you so much sir !!
@vishalkiroriwal7699
@vishalkiroriwal7699 7 ай бұрын
kya bawal chiz bnaya re 🥰🥰🥰
@prathameshhiremath1379
@prathameshhiremath1379 Жыл бұрын
maja agay sirji ,it will help for placements
@parthib.1555
@parthib.1555 Жыл бұрын
Mazza Aagaya
@nageshmane_14606
@nageshmane_14606 8 ай бұрын
Thank you Sir EXcellent Teaching skills
@Moment95817
@Moment95817 Жыл бұрын
Recursion ki Duniya manvi mam ne clear kar diya hai ❤
@CTrickC
@CTrickC 10 ай бұрын
Have you watched all DSA lecture
@Moment95817
@Moment95817 7 ай бұрын
@@CTrickC Almost
@aarzumustafa4586
@aarzumustafa4586 Жыл бұрын
Thank you so much sir for your support ❤❤
@aapkaapnabhojpuri9481
@aapkaapnabhojpuri9481 Жыл бұрын
Sir aap great ho
@jagannathsahoo6018
@jagannathsahoo6018 Жыл бұрын
mazza agayaa sir❤❤👌
@Luffy_2804
@Luffy_2804 Жыл бұрын
1:37:34 the clue really helped a lot to figure out the algo : ) static void pushAtBottom(Stack stack , int element){ if(stack.isEmpty()) { stack.push(element); return; } int topElement = stack.pop(); pushAtBottom(stack, element); stack.push(topElement); } static void reverseTheStack(Stack stack){ if(stack.size()==1) return; int topElement = stack.pop(); reverseTheStack(stack); pushAtBottom(stack, topElement); }
@AmarGupta-sy9cy
@AmarGupta-sy9cy 3 ай бұрын
mza aa gya sir..
@amandubey9296
@amandubey9296 Жыл бұрын
Maja aa gaya -- Thank you Sir 🙂
@Luffy_2804
@Luffy_2804 Жыл бұрын
1:25:35 remove from bottom / any index solution Stack stack = new Stack(); Stack stack2 = new Stack(); stack.push(20); stack.push(40); stack.push(60); // index - 2 stack.push(80); stack.push(100); // total size = 5 (5-2 = 3) 3-> index 2 (element to be removed) int index = 2; while(stack.size()-1>index){ // for 0 based indexing stack2.push(stack.pop()); } stack.pop(); // removing the element at given index while(stack2.size()>0){ stack.push(stack2.pop()); } System.out.println("the size of the stack is :" + stack.size()); System.out.println(stack);
@princesingh713
@princesingh713 3 ай бұрын
maaza aa gaya
@MonkeyDLuffyOnePieceOfficial
@MonkeyDLuffyOnePieceOfficial Жыл бұрын
Maza Aagaya sir!!
@samakpoetry4846
@samakpoetry4846 7 ай бұрын
maja aa gya.....👍
@NirajKumar-fr3ef
@NirajKumar-fr3ef Жыл бұрын
Bohot maja aaya sir..
@indreshyadav3684
@indreshyadav3684 Жыл бұрын
Maza aa Gaya sir ji
@RiskyBoy107
@RiskyBoy107 7 ай бұрын
Best Explanation
@Luffy_2804
@Luffy_2804 Жыл бұрын
1:08:09 after getting the clue i have implemented the recursive algo , we can print in reverse order using this given code : ) static void printTheStack(Stack stack){ if(stack.isEmpty()) return; int topElement = stack.pop(); System.out.print(topElement + " "); printTheStack(stack); }
@op-zm8sw
@op-zm8sw Жыл бұрын
Bro I want to ask many questions can you please share your insta I'd or something else
@Krishnayadav-jk6pn
@Krishnayadav-jk6pn Жыл бұрын
Good lecture for Beginners
@GajananKamble-pc6lb
@GajananKamble-pc6lb 8 ай бұрын
maja aagya thank you so much sir
@TripleH-p2b
@TripleH-p2b Жыл бұрын
Sir your way of teaching ❤🥰
@CTrickC
@CTrickC 10 ай бұрын
Have you watched all DSA lecture
@SKYian.
@SKYian. 7 ай бұрын
Maza aa Gaya ❤❤
@yogikoli1653
@yogikoli1653 8 ай бұрын
Mzaa agya
@svedits7567
@svedits7567 Жыл бұрын
Nice lecture...completed it today
@aamishcr7768
@aamishcr7768 Жыл бұрын
Mazaa aa gaya sir
@SnehansuPradhan
@SnehansuPradhan Жыл бұрын
Such a great explanation sir hats off
@Usernamepreeti
@Usernamepreeti Жыл бұрын
Stack padke maza aa gaya
@Titanium-r7q
@Titanium-r7q 2 ай бұрын
Maza aa gaya ----->
@Abhaykumar-lw7nr
@Abhaykumar-lw7nr Ай бұрын
mza aa gya..
@Luffy_2804
@Luffy_2804 Жыл бұрын
1:52:42 my array implementation using constructor to take the size of the array : ) class Stack { private int size; private int index = 0; private int[] arr; Stack(int size) { this.size = size; arr = new int[this.size]; } void push(int x) { if (isFull()) { System.out.println("Stack is full!"); return; } arr[index] = x; // adding element index++; // increasing the value of index } int pop() { if (isEmpty()) { System.out.println("Stack is empty!"); return -1; } int topElement = arr[index - 1]; // storing top element arr[index - 1] = 0; // setting the top element to 0 as we are removing (default value) index--; // decreasing index as one element is removed return topElement; } void display() { for (int i = 0; i
@aryamanray746
@aryamanray746 Жыл бұрын
Maza aa gaya!!!!!!
@aksharbrahm4618
@aksharbrahm4618 Жыл бұрын
great lecture and explanation
@Beyondbalmiki
@Beyondbalmiki 6 ай бұрын
Nice video sir ji
@thesolocamperksvs965
@thesolocamperksvs965 Жыл бұрын
As follows maja aagya
@imtiyazalam8628
@imtiyazalam8628 Жыл бұрын
Maza aagaya
@raskundu8106
@raskundu8106 Жыл бұрын
Maza aa Gaya ........
@sasta_reporter
@sasta_reporter 7 күн бұрын
maja aagya raghav sir
@Inspire_with_SM
@Inspire_with_SM Жыл бұрын
bole to jhakasss!
@TanmayInfotech
@TanmayInfotech Жыл бұрын
2:51:28 maza aa gya
@viveksahane1314
@viveksahane1314 9 ай бұрын
sir aap bhut accha padhate hein thanks
@AmitkumarMahto-d9c
@AmitkumarMahto-d9c Жыл бұрын
Maza aa gaya
@Priyew
@Priyew Жыл бұрын
Mazza aa gya..
@nitindagur6969
@nitindagur6969 Күн бұрын
better than paid course
@debapriyo007
@debapriyo007 Жыл бұрын
maza agaya..🥰🤞
@Sibasundarj8
@Sibasundarj8 22 күн бұрын
Maja Aa Gaya
@technoanalysis
@technoanalysis 2 ай бұрын
Also better than Coding Ninja which is costly
@nabinkumarshaw4474
@nabinkumarshaw4474 Жыл бұрын
Mja aa gya sir sach mey
@JEKisCODING
@JEKisCODING 4 ай бұрын
mazaa aa gya
@vivektiwarii_
@vivektiwarii_ Жыл бұрын
Mzaaa aa gya sir
@priyanshutrivedi2357
@priyanshutrivedi2357 Жыл бұрын
2:51:21 maza aa gya 🔥🔥🔥
@jayateerthag.h5372
@jayateerthag.h5372 6 ай бұрын
Maza aagya
@MuhammadUsman-cp3up
@MuhammadUsman-cp3up 5 ай бұрын
Maza agya
@UdayGarg
@UdayGarg 3 ай бұрын
mza agyaa
@amanshrivastavaofficials
@amanshrivastavaofficials Жыл бұрын
Maja aagya💓
@vickyplaybeats
@vickyplaybeats Жыл бұрын
maja aa gaya bhaiya
@madhav2993
@madhav2993 Жыл бұрын
maza aa gaya
@surishtirajkaralia801
@surishtirajkaralia801 Жыл бұрын
Mjja a gya😊
@JeetuKumar-wd1uw
@JeetuKumar-wd1uw Жыл бұрын
Awesome teacher
@sunilverma-oz4nm
@sunilverma-oz4nm Жыл бұрын
mja a gya
@harshchouksey7740
@harshchouksey7740 Жыл бұрын
great explanation👍👍👍
@ParthDabhiOfficial
@ParthDabhiOfficial 3 ай бұрын
Maja Aa Gaya, Radha Radha 🌺
@tf6ml
@tf6ml Жыл бұрын
Maja aa gaya Sir
@ArshadKhan-xb3sz
@ArshadKhan-xb3sz Жыл бұрын
maza aagya
@mrinalpatra7415
@mrinalpatra7415 Жыл бұрын
maza bahot aa gya aaj ... itna nhi aani chahiye thi😂
@MotivationalMantra-dg9qi
@MotivationalMantra-dg9qi 10 ай бұрын
Mazaa aa gya
@Luffy_2804
@Luffy_2804 Жыл бұрын
Maza a gya
@TripleH-p2b
@TripleH-p2b Жыл бұрын
Thankue sir ❤
@aditikaushik3334
@aditikaushik3334 2 ай бұрын
maza aa gya;;
@vikashbachhety7515
@vikashbachhety7515 Жыл бұрын
Add the video in Java and dsa playlist
@GamersPaltan
@GamersPaltan Жыл бұрын
Maja aagaya sir 😊
Queues - Basic, STL and Implementation | Lecture 57 | Java and DSA Course
2:35:10
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 13 МЛН
L1. Introduction to Stack and Queue | Implementation using Data Structures
1:05:06
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58
Maximilian Schwarzmüller
Рет қаралды 66 М.
MR BEAST PARODY 🤑 Ft. INDIAN CREATORS | CARRYMINATI
22:01
CarryMinati
Рет қаралды 73 МЛН
Linked List in Java - Part 1 | Lecture 51 | Java and DSA Foundation Course
2:53:18
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 587 М.