python deque (useful interview datastructures) (intermediate) anthony explains #190

preview_player
Показать описание
today we talk about deque and all the useful methods it has!

==========

I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
Рекомендации по теме
Комментарии
Автор

Hi Anthony, you should add your Paypal link so those of us that feel your tutorials are valuable can donate periodically. Thanks for your dedication to help others grow in the knowledge of Python. God bless you and your family.

mqbsblp
Автор

a double ended queue is just a singly linked list with references to the head and tail right?

also someone might want to use deque for stack instead of list to have worst case o(1) append time, where in list it can be o(n)

sadhlife
Автор

1:46, how is deque's popleft method O(1)? deque like list is index traversed right? so it too needs to shift the elements in case I need to print deque(3) after the popleft method?

a_maxed_out_handle_of__chars
Автор

Can I please get a program of is empty like a complete program before 14

Puja
Автор

why is i better to use deque? And when should I use it in real projects?

nononnomonohjghdgdshrsrhsjgd