All Questions
3 questions
0
votes
1
answer
524
views
AttributeError in the implementation of queue by using Single Linked List in the python
I want to implement a queue by using a single linked list. When I run the below code, I receive the AttributeError. I don't know what should I do to fix this issue.
I assume the first of the linked ...
-1
votes
1
answer
79
views
Print stack or row in different ways with same function in Python
My task is to print Stack and Queues in different ways.
I implemented Stack with single linked list and Queue with double linked list.
This is main function where I push elements into Stog(Stack) and ...
0
votes
1
answer
926
views
How does queue front and back referencing work?
In my CS1 class, we are currently learning about singly-linked lists, stacks, and queues in python. We were doing an example of adding a new element to a queue and setting the queue's front and back ...