+ 1
Implementing stack and Quee in python
without using the inbuilt method of pop append push etc.
7 Answers
0
This for stack implementation:
https://code.sololearn.com/c8RhdE3VT60e/?ref=app
0
Queue implementation:
https://code.sololearn.com/c9s55Ry45tR8/?ref=app
0
thanks but I don't need the push pop method I need another method
0
In both codes of stack and queue, I didn't use neither push nor pop methods I implemented. Note: Stack is data structure which has 2 methods (push/pop) so whether you use list methods or implemented by ur self but there is no 3th option. This is just for clarity of stack concept.
0
25th line of queue see it...enqueue command had been used there..
0
I implemented it. you can name it any thing else. look at class methods.
0
okk đłď¸đłď¸đłď¸đłď¸