Why do we have to learn about stack and queue when we could directly learn about linked list? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why do we have to learn about stack and queue when we could directly learn about linked list?

18th Apr 2019, 6:34 AM
Debmalya Dey
Debmalya Dey - avatar
2 Answers
+ 2
Because all of them have their use in different cases. They are different in speed, memory efficiency, and in how mich you can do with them.
18th Apr 2019, 6:58 AM
Dragonxiv
Dragonxiv - avatar
+ 2
It's better to have knowledge about different data structures. And each of em has its own purpose. Learn more about them to know the pros and cons of each.
18th Apr 2019, 8:50 AM
Aaron Stone
Aaron Stone - avatar