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
|
694 Discussions
|
Please Login in order to post a comment
There is a PHP error with the code provided.
PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in Solution.php on line 34
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: *