Skip to main content

All 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 ...
Mahzad's user avatar
  • 13
-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 ...
None4's user avatar
  • 13
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 ...
neRienn's user avatar
  • 41