+ 1

Implementing stack and Quee in python

without using the inbuilt method of pop append push etc.

6th Apr 2020, 6:39 PM
Naveen
Naveen - avatar
7 Respuestas
0
7th Apr 2020, 2:54 AM
Ahmed Draz
Ahmed Draz - avatar
7th Apr 2020, 1:35 PM
Ahmed Draz
Ahmed Draz - avatar
0
thanks but I don't need the push pop method I need another method
7th Apr 2020, 6:14 PM
Naveen
Naveen - avatar
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.
7th Apr 2020, 7:50 PM
Ahmed Draz
Ahmed Draz - avatar
0
25th line of queue see it...enqueue command had been used there..
8th Apr 2020, 1:32 AM
Naveen
Naveen - avatar
0
I implemented it. you can name it any thing else. look at class methods.
8th Apr 2020, 1:35 AM
Ahmed Draz
Ahmed Draz - avatar
0
okk 🏳️🏳️🏳️🏳️
9th Apr 2020, 4:24 PM
Naveen
Naveen - avatar