We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 18: Queues and Stacks
Day 18: Queues and Stacks
Sort by
recency
|
693 Discussions
|
Please Login in order to post a comment
code in java 15 class solution {
ArrayDeque ad1=new ArrayDeque(); //for stack ArrayDeque ad2=new ArrayDeque(); //for queue
def init(self): self.stack = [] self.queue = []
Java
IMO these challanges are getting easier every week. *Pyhon code: *