Тёмный
No video :(

Stack Data Structure in One Video | Java Placement Course 

Apna College
Подписаться 6 млн
Просмотров 660 тыс.
50% 1

Code at : github.com/shr...
TimeStamps :
Start - 00:00
Stack Introduction - 01:12
Stack using Linked List - 10:15
Stack using ArrayList - 18:30
Stack using Collection Framework - 24:00
Question1 (Push at Bottom of Stack) - 25:10
Question2 (Reverse a Stack) - 31:22
🔥Java Placement Course : • Introduction to Java L...
🔥Complete C++ Placement Course (Data Structures+Algorithm) : • C++ Full Course | C++...
🔥Telegram: t.me/apnikaksh...
🔥Instagram: / dhattarwalaman
My RU-vid Gear 😉: docs.google.co...

Опубликовано:

 

17 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 299   
@SushantRahane
@SushantRahane Месяц назад
15:10 this head again n again makes me remember Travis Head on 19th November 2023 😢
@sahllsaharn4664
@sahllsaharn4664 2 года назад
bhai jabb khud question ho jata hai to maza hi kuch or hota hai itna self - confidence a jata hai ki nasa hack krdunga !
@anshgupta10304
@anshgupta10304 2 месяца назад
hack hua?
@anujsaini4454
@anujsaini4454 2 года назад
Didi aapki vedio late aathe h tho flow tute jata h 😂 m kishe kishe cours ki aur jata hu firr aapka vedio aa jata h aur firr m yahe continue karta hu didi pls thoda sa jaldi jaldi bana upload krr do🥰 pls pls
@meme_Overflow
@meme_Overflow 2 года назад
Aj bhi log video ko vedio likhe h😅 sunke accha laga
@sandeepsharma3506
@sandeepsharma3506 2 года назад
@@meme_Overflow Haha
@superdevloper7878
@superdevloper7878 2 года назад
@@meme_Overflow pad k
@rickygill7608
@rickygill7608 2 года назад
@@meme_Overflow log padhne ko sunna likh rhe hai ye dekh kr bhi acha laga 😂
@jatinkashyap9986
@jatinkashyap9986 Год назад
@@rickygill7608 😂😂😂😂😂😂
@VikaShKUMAR-is2lg
@VikaShKUMAR-is2lg 2 года назад
Please upload atleast one lectures per day. itni late lectures aayegi ti java complete karne me bahut time lg jayega . Please consider it.👍👍
@vijayreddyvanga3229
@vijayreddyvanga3229 9 месяцев назад
I just want to let you know that, there is a problem with the code i.e the use of the static keyword for the head variable in the Stack class makes it a class-level variable, shared across all instances of the class. This means if you create multiple instances of the Stack class, they will share the same head, which can lead to issues when working with multiple independent stacks. To have multiple independent stacks, you should make the head variable non-static. Each instance of the Stack class should have its own instance variable for head.And eventually all the methods should be non static to access the head variable.
@palakmeena3441
@palakmeena3441 7 месяцев назад
still it is showing error...???
@jayprakashmaurya4291
@jayprakashmaurya4291 7 месяцев назад
If you want to solve your problem let me know send you the code
@bruhm0ment767
@bruhm0ment767 3 месяца назад
@@palakmeena3441 if we make all the methods and the stack class non static, then main will raise an error, since main is static and is trying to access a non static class and its methods. I think the only way to get around this is to implement the stack class in a different .java file within the same package, compile seperately and use them.
@prajvalgandhi6258
@prajvalgandhi6258 Месяц назад
No need to make different stack class. Just include function directly in StackClass class similarly like the implementation of LinkedList in previous videos
@utsavjangid7193
@utsavjangid7193 2 года назад
Please update the course on a frequent basis if possible. It's not really helping anymore to go along with this course only, C++ course was delivered in afar better manner. Felt it so expressed it, but really a humble request only, if anything. Please update the course as the lectures as always are really helpful.
@prathamjain9174
@prathamjain9174 2 года назад
Didi I am in 1st semester of my college and from next semester our University is introducing C++ and making account of every student on CodeChef. And I don't know anything what to do ??? Please help ....
@computer5548
@computer5548 2 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-oveFRMzzkpM.html C++ series 👍
@ayushyadav1894
@ayushyadav1894 2 года назад
Thank you updating the java series
@adityanikhate9223
@adityanikhate9223 2 года назад
Didi your lectures are always helpful. Thank you for this wonderful course.
@boywithguitar1767
@boywithguitar1767 2 года назад
My kids will remember your work ✨✨ You'll make history 🔥⭐
@jatin607
@jatin607 2 года назад
Bhaiya web development ki series please full stack tk lekr jana... Really bhut helpful series h.... Dil se thank you❤.
@user-uf1oj7fw9k
@user-uf1oj7fw9k 6 месяцев назад
Mam full video nahi hai ye 😢
@Studyforsuccesstogether
@Studyforsuccesstogether 6 месяцев назад
Why Node class and Stack class are static?
@kulkarnisoham
@kulkarnisoham 2 года назад
This java course is beyond lit 🔥
@yashwantkumar1035
@yashwantkumar1035 2 года назад
Didi please upload videos frequently.. I want to. Learn and your course is helping me alot.. And thank you for this..
@meetradadiya29
@meetradadiya29 Год назад
5:12 bahot dukhad tha😢😂
@mbilal11097
@mbilal11097 2 года назад
Hands down the best Java course out there.
@kushvendar2856
@kushvendar2856 2 года назад
what do you think when it will be completed ?
@mbilal11097
@mbilal11097 2 года назад
@@kushvendar2856 I mean I can't answer that but it might take sometime cause it takes time to create videos with great quality.
@kushvendar2856
@kushvendar2856 2 года назад
@@mbilal11097 totally agree but i wanted to know a rough idea may be i mean how much more is left to cover
@user-ew5hd9jh5f
@user-ew5hd9jh5f 7 месяцев назад
bro this course was completed 1.5 years ago where are you both today please share ur experience ur present situation @@mbilal11097
@atharv_rege5869
@atharv_rege5869 2 месяца назад
what is the name of the extension which di is using to for the analysis
@RaajKanchan
@RaajKanchan 6 месяцев назад
We can create a stack without LinkedList or ArrayList with the help of Stack class.
@harisha6119
@harisha6119 2 года назад
Please add ENGLISH CAPTIONS. I planned to learn Hindi language but not immediately, But Now I am trying to learn hindi language immediately only because of these lectures. Still it took more time to learn hindi and i understand these videos. Please add ENGLISH captions🙏
@user-uf1oj7fw9k
@user-uf1oj7fw9k 6 месяцев назад
Mam full video nahi hai ye
@swatisinha3141
@swatisinha3141 2 года назад
please upload the lecture on weekly basic it is really helping in clearing the concept.
@vishnu3595
@vishnu3595 2 года назад
Didi ye VS code ke side me testing terminal kese late hai. jese apke me aarha hai
@mrgamer1123
@mrgamer1123 2 года назад
Yrr ap bht mehnat krti ho . Appreciate your work 😊
@VTGAMING07
@VTGAMING07 7 месяцев назад
27:00 Can't we just traverse the stack and add the element at the end? because we have the head node
@RonakYadav04
@RonakYadav04 5 месяцев назад
@Apna college ma'am plz help how to learn or practices data structure and algo in C language plz suggest me DSA in C language
@zohaibahmad2752
@zohaibahmad2752 3 месяца назад
buy paid course of apna college it is worthy
@mdaffan6261
@mdaffan6261 Год назад
Didi aap bahut accha samjhatee hai
@AkashRai-by5qp
@AkashRai-by5qp 15 дней назад
can you please make a string playlist video from basic to advance solving datastructure questions on strings
@rahuldiwan9818
@rahuldiwan9818 2 года назад
thank you so much di. i never seen this type explanation ❤️👍. fortunately I just started the stack DS now see your video came 😁👍 thanks a lot👍
@lokendrasingh9780
@lokendrasingh9780 2 года назад
ap vhi rahul h kya ho neha k pichhe pde h😍😂
@failurejohnwick00
@failurejohnwick00 2 года назад
aapka padhane ka tarika lajawab hai mam aapka har ek point samjh aata hai aapne mam Hash tab pr v ek vedio bana dijiye
@himanshujharwal5276
@himanshujharwal5276 2 года назад
please update the playlist really need further content.
@AmanSharma-zy8yd
@AmanSharma-zy8yd 2 года назад
Apni didi best hai😍😍
@abhishekak8597
@abhishekak8597 Месяц назад
Thankyou ma'am 🙏🙏 your way of teaching is excellent 👌👌💯💯
@piyushraj7489
@piyushraj7489 2 года назад
Nicely Explained, Waiting for your tree tutorial...
@Heartless-he8km
@Heartless-he8km 2 года назад
sis please make complition of this course a bit faster , atleast upload a couple of vidios in a week, really appreciate your efforts a lot of love & restect...........................
@raj3718
@raj3718 2 года назад
Where stack used?? What is application of stack??
@shivangsingh2529
@shivangsingh2529 Год назад
what if i try poping an element in empty , it shows list is out of bound. bcs we are calculating it by using size().
@nikhilkeshri5442
@nikhilkeshri5442 10 месяцев назад
Mam , my code is stuck inside infinte loop when i implement the stack by arrayList
@pruthvirajjadhav9322
@pruthvirajjadhav9322 Год назад
Why Stack class and the methods were done 'static'? #question
@mohammadshavez07
@mohammadshavez07 Год назад
Ma'am can you provide more lecture On DSA it's helpful for us.
@fat12fat9
@fat12fat9 Год назад
Really....The way she teaches everything gets clear, her way of teaching is perfect 👌
@aasthashivhare609
@aasthashivhare609 2 года назад
Please lecture continue way m upload kriye it's really helpful
@AyanKhan-zh4it
@AyanKhan-zh4it Год назад
the pop() function is returning a value.. but in the code.. we are not storing the value returned by the pop function in any variable. Can you explain this why? Is it because the pop function is static??
@unity3dtutorial976
@unity3dtutorial976 Год назад
exactly I Was thinking also how the output is coming while in the recursion we have pop out the element.
@deepanshusaini3453
@deepanshusaini3453 2 года назад
Hii......Can we use this for push bottom of the stack s.push(1); s.push(2); s.push(3); Collections.reverse(s); s.push(4); Collections.reverse(s);
@itz_mehh_darshan
@itz_mehh_darshan 10 месяцев назад
No because stack is one side open and first in first out and first in last out is in queue
@shahidshaikh4405
@shahidshaikh4405 Месяц назад
collection framework is so simple to implement and run code, why should we want to manually write so long syntax
@AnkitKumar-ys7vs
@AnkitKumar-ys7vs 2 года назад
@17.08 // print public static void print() { if(isEmpty()) { System.out.println("null");; } else { Node currNode = head; while(currNode != null) { System.out.print(currNode.data+" "); currNode = currNode.next; } System.out.println(); } } Its better that we use a print function for printing elements where our elements are also preserved and stack not get empty.
@gamingdipesh8389
@gamingdipesh8389 4 месяца назад
-1 is symbol of stack empty in real time programming so -1 method is good method
@AnkitKumar-ys7vs
@AnkitKumar-ys7vs 4 месяца назад
@@gamingdipesh8389 Thanks 👍🏻
@akshaysharma8235
@akshaysharma8235 11 месяцев назад
Didi what's is the name of extension which you have used to see output in this particular vidieo ???
@LVNavyaSree
@LVNavyaSree 2 года назад
in push at bottom of stack problem i didn't understand how the top is being pushed back into the stack , as top is integer variable i'm thinking the value stored in it will be updated after each recursion call , so where the popped elements 3,2,1 will be stored ? so that we can push back into stack
@GuruPrakash745
@GuruPrakash745 2 года назад
It happened due to backtracking ..you should learn how code works on recursion
@venky7896
@venky7896 Год назад
If you can solve sum of elements in array using recursion , then you can understand that every call will be stored in a stack and while returning it will backtrack to original one
@ASIFAlI-lq4rd
@ASIFAlI-lq4rd Год назад
im guareenting you... you will undertand everything only when you will write PushAtBottom steps at each recursion. Then only you will understand everything... i was also thinking it was very hard but after writing steps by step everytime it became easy and easy.
@Milan_verma017
@Milan_verma017 5 месяцев назад
Reverse a stack agar space complexity O(1) ho to phir ?
@wajihanoorofficial3494
@wajihanoorofficial3494 8 месяцев назад
Which statement should I add if I want to delete duplicate numbers in linkedlist?
@PragatiTripathi-ym9nw
@PragatiTripathi-ym9nw 10 месяцев назад
Stack s = new Stack(); Stack s2 = new Stack(); s.push(1); s.push(2); s.push(3); // pushatbtm(4,s); while(!s.empty()){ s2.push(s.peek()); s.pop(); } // Collections.reverse(s); System.out.println(s2);
@anushkachawla1019
@anushkachawla1019 Год назад
Apake channel pe or videos kisi or teachers ki h sch me kuch smjh NH aata. Diii aap jitaa ache se pdhate ho wo mssttt lgta h 😄😄 dii
@ravindrakaliya6201
@ravindrakaliya6201 2 года назад
29:15 i am getting error in every time ,when i write pushaAtBottom(data,s) Here the error is in "data" it show " data can not be resolved "... Please help me guys
@pankushah007
@pankushah007 Год назад
wao mam bhut aacha padhati hai aap .... 2-3 bar video dekhi but kuch bhi smj ni aaya. thank you .
@dopaamiinee
@dopaamiinee Год назад
tere bs ki nhi hai sozaa
@user-bc6ss6gp3z
@user-bc6ss6gp3z 5 месяцев назад
#Apna College & shradda didi rocks
@brijesh.maurya.official
@brijesh.maurya.official Год назад
Mam, push at bottom wale question me hu arraylist use krke ek method (pushAtBottom)defined krke arraylist ki addFirst wale method ko call krke s.pushAtBottom(data); to kya ye shi hoga? mam iski time complexity bhi O(n) hi hoga..
@mindblow3029
@mindblow3029 2 года назад
Why in last question we need to take reverse of empty stack?
@YuvrajSingh-cq5gm
@YuvrajSingh-cq5gm Год назад
dii question no 1 mai stack over flow ho jaiga so i think we should create object for calling with another variable except s in main part
@vishalpandey5793
@vishalpandey5793 2 года назад
Diii bahut gab horaha hai bahut late se video aaraha hai aaise tho hum purana hi bhuljayege aaor tho ithna late se matlb java complete hi nahi hopayega yrs tak bhi so pls pls pls thoda sa java couse ke uper bhi dhayan dijiye na pls my honarable request for u Dii Atleast DSA tho fast fast complete karavatho mere interview bhi aarha hai aaor tho aab lockdown mein isaka practice bhi karna hai so pls DSA and ALGO bas jaldi se khatam kartho na.......Next video Hashing pe lao na diii pls...Tq
@honeyhemanth401
@honeyhemanth401 Год назад
i have a doubt didi why did you public in linked list whereas you didnt use anything in arraylist while creating node class and other methods
@Dev-kp7xx
@Dev-kp7xx 2 года назад
Please give the notes in pdf form as usual
@ashishbarnwal3007
@ashishbarnwal3007 2 года назад
Can we implement first stack ques with linked list ?
@uditsharmaatray779
@uditsharmaatray779 Год назад
Are maam application of array kya h?😊
@brogrammerone9727
@brogrammerone9727 2 года назад
I was nice explaination. Clearified in very simple way.
@someoneOnYT10
@someoneOnYT10 2 года назад
Hi, Thanks for the explanation, it was awesome Could you please check the uploaded practice questions notes once, it seems it is not accessible Thank you :)
@shirishgoyal7379
@shirishgoyal7379 7 месяцев назад
what would be complexity of reverse function?
@zainkhan3987
@zainkhan3987 2 года назад
I love you di ❤️ you are the best teacher May Allah swt bless you ✌️✨
@maths6859
@maths6859 2 года назад
Please make video on VS CODE and MINGW setup
@kotappaygandudi7369
@kotappaygandudi7369 Год назад
we can use addlast method from linkedlist to push element at the bottom of the stack
@rahulpain399
@rahulpain399 2 года назад
best videos thank you didi 😃😃😃😃🥰
@tanugupta9333
@tanugupta9333 2 года назад
Plz mujhe eski pdf access krne m help kr do koi yeh open hi nhi ho rhi h or dsa ki pure playlist h es chhanel pr
@atharv_rege5869
@atharv_rege5869 8 дней назад
Can anyone tell me the name of the extension??
@saneelyadav772
@saneelyadav772 2 года назад
Di mujhe apse kuch jhankari leni thi data science ke according kya kru
@TOMSONSONES
@TOMSONSONES 2 месяца назад
why is stack declared static why cant it be public ?
@Dream-mt7eb
@Dream-mt7eb 2 года назад
Mam i respect you or watch your vedios..... but mam there is a problem .. In apni kaksha java full placement which was thier...i understand and follow the entire plyalist . Todays morning i complete my dowhile loop vedio and in afternoon i practice it but.... Now in night the plyalist is delete by your channel please mam uplod it Please🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏 mam 61 vedios jis java playlist mai the placement wale wapash se upload kar do delete mat karo plz🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏 please request you mam.... Ye mai support ke tor pe use karti apki playlist but wo wali mere liye important hai wo main hai please mam upload kar dijiye please🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
@pradeepbudaniya4777
@pradeepbudaniya4777 2 года назад
Didi aap bsc maths ke baad career ke bare me bataye ❣️❣️ Love you dear didi
@malikkhurram3975
@malikkhurram3975 2 года назад
Your vedio is so helpful keep up ❤❤❤❤🇵🇰🇵🇰🇵🇰🇵🇰
@AdityaSingh-ex4bn
@AdityaSingh-ex4bn Год назад
Thanks a lot for this lecture. But di please complete the playlist.
@manishparmar1672
@manishparmar1672 2 года назад
Kya me us me computer science degree leke software Engineering ban sakta hu ??
@vishalpandey5793
@vishalpandey5793 2 года назад
plz upload new video on java placement course as soon as possible
@filmylegend239
@filmylegend239 2 года назад
plzzzzz complete this series before 1 jan
@anjalithacker4570
@anjalithacker4570 2 года назад
Bhaiya ye course bhi complete hoga ya baaki courses ke tarah aadhe main you will leave and introduce some new course? Because the videos for this playlist are not coming!!!😩
@rkboy70
@rkboy70 2 года назад
which extension mam is using for running code??
@mightyraju6817
@mightyraju6817 2 года назад
Didi please...jis flow me aapne c++ placement course k videos upload kiye the vaise hi java placement course k videos upload kar dijiye....
@devmanish
@devmanish 2 года назад
Hi, Why is Node Class set as static class?
@hamzaimrantechstudio
@hamzaimrantechstudio 11 месяцев назад
Awesome video👍👍 can you change the vs code background to light(white) color for a better user experience
@adnanzahid1697
@adnanzahid1697 2 года назад
Is it the last video of the java playlist or will new videos be added?
@siddhurathodfitness7268
@siddhurathodfitness7268 11 месяцев назад
you have created a object for stack class which is static class how is its possible?...am unable to run that code at last
@vijayreddyvanga3229
@vijayreddyvanga3229 9 месяцев назад
Yes, we can create the instance/object of stack class because it is a static inner class.
@someshsahu4638
@someshsahu4638 Год назад
Nice explanation thankyou 🙏🏼
@kurubasaikeerthana5178
@kurubasaikeerthana5178 Год назад
mam can't we display the stack elements without calling pop() method??....means if we want to just display the stack elements but not to delete them
@tanmaychaudhary2801
@tanmaychaudhary2801 Год назад
use peek() function
@kurubasaikeerthana5178
@kurubasaikeerthana5178 Год назад
@@tanmaychaudhary2801 peek() function returns only top element right mam....but if we want to display all elements then??
@jayeshpatil5757
@jayeshpatil5757 Месяц назад
8:02 ,14 July, 1 st video, dreamlm 7:34,red hint,14 july
@Game_Smasher
@Game_Smasher 2 года назад
Very nice didi thanks 😊😊
@taniyapundir2522
@taniyapundir2522 Год назад
Where will I practice questions of stack
@krishshah8199
@krishshah8199 2 года назад
🙏🏻🙏🏻🙏🏻Mam pls continue the java course pls 🙏🏻🙏🏻🙏🏻
@ai_world_2025
@ai_world_2025 2 года назад
Thanks dii Great explanation. Make more videos on data structure and algorithm please.
@akprograming6093
@akprograming6093 2 года назад
Yes didi please... Vedio aur bnaye data structure ke basik je bare me... Jo coding hoti h stract autr tree me ek bi samjh nhi aati h unki thoda easy me pahle u ka use btaye fir code please didi samjh nhi aa rha h....
@Amotivation-fo4wu
@Amotivation-fo4wu 2 года назад
didi m abhi b.sc in compuer scinece kar raha hu or mer c ++ or dsa bahut aacha h to kya m microsoft amazone me job ke liye eligible hu kya please didi muje logo ne kaha h ki kuch nahi lagegi teri job to aap ek bar bata dijiye
@amangupta4914
@amangupta4914 Год назад
where are exercises in description ?
@saif4849
@saif4849 2 года назад
How many days will it take to complete this playlist?
@arvakachwala8600
@arvakachwala8600 Год назад
since the class stack was static, why did you create an object of the class?
@vijayreddyvanga3229
@vijayreddyvanga3229 9 месяцев назад
Because if we want to create the multiple instances of stack class or multiple stacks we need to create an object of it to perform different operations on different stacks.
@nawaabraja9682
@nawaabraja9682 2 года назад
@apnaCollege can you please share IDE Name that she is using in the Video?
@Ayush-mn8jz
@Ayush-mn8jz Год назад
This playlist looks randomly arranged. Can anyone please let me know which video is first to watch in the playlist, which video is second, till last video. I know the content is good.
Далее
would you eat this? #shorts
00:39
Просмотров 2,9 млн
Мелл хочешь сына от Дилары
00:50
Просмотров 212 тыс.
Coding Interviews Be Like
5:31
Просмотров 6 млн
Fastest way to learn Data Structures and Algorithms
8:42
How I would learn Leetcode if I could start over
18:03
Просмотров 438 тыс.