How to implement a Stack using a Linked List in Java ? | Stack Data Structure

How to implement a Stack using a Linked List in Java ? | Stack Data Structure

Dinesh Varyani

6 лет назад

46,430 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@jainababah6718
@jainababah6718 - 08.11.2023 14:51

Ответить
@doggymama7553
@doggymama7553 - 04.10.2023 07:29

Best Teacher For DSA , Thanks sir 🙏

Ответить
@soumyadipmajumder902
@soumyadipmajumder902 - 26.06.2023 16:33

Sir please a course on Linux OS

Ответить
@soumyadipmajumder902
@soumyadipmajumder902 - 26.06.2023 16:33

Easy to understand, awesome course

Ответить
@starlordgaming4765
@starlordgaming4765 - 04.03.2023 15:19

You are great teacher

Ответить
@mustafakamalsirajudeen8133
@mustafakamalsirajudeen8133 - 04.12.2022 13:52

Dinesh!!! Excellent tutorial. Real hard work man. Appreciate your efforts. Helped me a lot to understand Data Structure and Algorithms with real time examples.

Ответить
@mrinmoykalita5726
@mrinmoykalita5726 - 23.11.2022 17:49

Sir I've a question why private ListNode are you using? Can't we use public

Ответить
@DolaLado
@DolaLado - 22.07.2022 17:13

thank you.

Ответить
@samsonsafo8417
@samsonsafo8417 - 23.02.2022 10:33

That’s a really good explanation

Ответить
@samuel_william
@samuel_william - 25.12.2021 09:24

What is the use of the constructor stack, by default top is null and length is 0 right

Ответить
@vinodgupta4866
@vinodgupta4866 - 30.08.2021 09:20

Very helpful series sir.🤗 Sir please make a playlist on collections framework.🙏

Ответить
@arijitmohapatra147
@arijitmohapatra147 - 26.08.2021 13:47

In pop operation won't we have to decrement top?

Ответить
@ashwiniv7053
@ashwiniv7053 - 07.08.2021 14:23

Thanks a lot Dinesh for awesome explanation.

Ответить
@updates9126
@updates9126 - 05.07.2021 11:03

Is this the stack implementation using linked list sir?

Ответить
@neerajrawat6234
@neerajrawat6234 - 11.04.2021 08:16

sir stack element display kese karayenge

Ответить
@AniketKumar-lv3td
@AniketKumar-lv3td - 11.03.2021 12:38

Very clear explanation of data structure implementation that i ever saw
Thank you so much sir ❤️
One request please upload video on how to start competitive programming.

Ответить
@vasudevparmar9876
@vasudevparmar9876 - 29.01.2021 21:49

can we print stack just like we did in linked list:- while(top!=null)and ..........

Ответить
@charan_75
@charan_75 - 29.01.2021 20:21

While using pop it is better to create a temp pointer referring to tops next node and make tops next node to null and then move top to temp. So Java garbage collector will be able to collect the removed object.

Ответить
@sanjushekhawat6446
@sanjushekhawat6446 - 03.01.2021 19:59

What difference linkeList araay nd stack

Ответить
@sanjushekhawat6446
@sanjushekhawat6446 - 03.01.2021 19:52

Keep it sir

Ответить
@jessenelson1437
@jessenelson1437 - 02.11.2020 06:21

great vid

Ответить
@shantanum330
@shantanum330 - 01.10.2019 13:34

what is the time complexity of this program?

Ответить
@abhaypratapsingh6157
@abhaypratapsingh6157 - 27.07.2019 15:23

what if i write::
private static Listnode top

Ответить
@joecamroberon9322
@joecamroberon9322 - 19.04.2019 06:31

Wow, learning linked lists was so difficult compared to this.

Ответить
@amitpanc
@amitpanc - 06.01.2019 11:09

I spent almost 2 hours looking for LL based implementation of stack. Yours was the only one that has explained in very simple manner. Too impressive way of teaching! Love from California !!

Ответить
@pl5778
@pl5778 - 09.10.2018 03:59

very very clear, awesome job!

Ответить
@levsblinnikovs6209
@levsblinnikovs6209 - 18.07.2018 20:02

Thank you very much, I understood a concept.

Ответить