Double-Ended Queues in Python
The regular queue data structure follows FIFO(First in First Out) rule. Queue is a great data structure, but when it comes to adding elements at the end or removing elements from the beginning, it gets complicated.
This is where Double-Ended aka dequ...
afiz.hashnode.dev1 min read