142 - Queue using Two Stacks | Queue | Hackerrank Solution | Python

preview_player
Показать описание
⭐️ Content Description ⭐️
In this video, I have explained on how to solve queue using two stacks using stacks concept in python. This hackerrank problem is a part of Problem Solving | Practice | Data Structures| Queues | Queue using Two Stacks and solved in python. The complexity of this solution is O (q).

Make a small donation to support the channel 🙏🙏🙏:-

#queueusingtwostacks #hackerranksolutions #hackersrealm #hackerrank #python #howtosolve #queues #problemsolving #tutorial #algorithms #datastructures #programming #coding #codinginterview #education #aswin
Рекомендации по теме
Комментарии
Автор

Congratulations Ashwin bro for excellent explanation and especially for your you tube channel got monitized 🔥🔥🔥

prathameshkumbhar
Автор

Why for query 3 you also push them to StackDelete if it's askign for the first one pushed? should it just be taken form stackPush?

YoSoyWerlix
Автор

Sorry what is stackpush and stackdelete for? I think I got lost a bit.

jameshizon
Автор

Cant we implement this using one one queue?is this approach is wrong?

Harshit_Saparia
Автор

my answer is wrong ...my out put is 42 ...how to solve this problem ?my code is currect but answer is wrong

abuabrar
Автор

try to explain slowly and in detail please

md.masiud