+ 2

Circular linked list

Can you push or pop an item on a circularlinked list?

4th Nov 2020, 7:35 AM
Sanjay Kamath
Sanjay Kamath - avatar
3 Respuestas
+ 3
The closest you could do is insert and remove. The implementation should be similar to inserting or removing nodes with a linked list at any arbitrary position. push and pop are operation names typically used for stacks or dynamic arrays but insert and remove are what you want.
4th Nov 2020, 7:47 AM
Josh Greig
Josh Greig - avatar
+ 2
Josh Greig Thank you 🙏
5th Nov 2020, 5:31 AM
Sanjay Kamath
Sanjay Kamath - avatar