Explain the implementation of stacks using linked lists?
Answers
Answered by
1
/﹋\_
(҂`_´)
<,︻╦╤─••••PLÉÃSÈ FÖLLÔW MÉ
_/﹋\_
100 %
██████████ HÉLPFÜL ✔
✔️✔️✔️✔️✔️✔️
●▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬●
Stack can be implemented using both arrays and linked lists. The limitation, in the case of an array, is that we need to define the size at the beginning of the implementation. This makes ourstack static. It can also result in “stackoverflow” if we try to add elements after the array is full
●▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬●
●▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬●
●▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬●
●▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬●
(҂`_´)
<,︻╦╤─••••PLÉÃSÈ FÖLLÔW MÉ
_/﹋\_
100 %
██████████ HÉLPFÜL ✔
✔️✔️✔️✔️✔️✔️
●▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬●
Stack can be implemented using both arrays and linked lists. The limitation, in the case of an array, is that we need to define the size at the beginning of the implementation. This makes ourstack static. It can also result in “stackoverflow” if we try to add elements after the array is full
●▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬●
●▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬●
●▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬●
●▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬●
Similar questions