+ 2
Give me exercises!!
I would like to train my Python skills.Can someone give me some exercises please?( beginner-intermediate level ) I will post the codes on SoloLearn when I can.Currently I have no Wi Fi at home.
7 Answers
+ 5
+ 5
codewars.com
+ 3
Just search google
+ 2
@Immortal I prefer PDF collection.Anyway,Thanks you all for the answers!
0
Build the following:
>Queue (fifo protocol)
>>>Its like a real life lineup at a store or coffee shop. Usual methods are:
>>>create ()
>>>is_empty ()
>>>enqueue ()
>>>dequeue ()
>Stack (lifo protocol)
>>>Think of this as a stack of plates for dishes. You add on top of a pile, and you can only take off the top. Usual methods are:
>>>create ()
>>>is_empty ()
>>>push ()
>>>pop ()
>import stack, and build a queue with it.
>>>even though both do different things slightly. You can make a stack do the same thing as a queue (without modifying your stack.py). hint: using a dictionary with two stacks.
These help you understand some concepts in ADT (abstract data type).
If you need help understanding these or the question (s), post back.