[Java] Leetcode 225. Implement Stack using Queues [Stack & Queue #1]

preview_player
Показать описание
In this video, I'm going to show you how to solve Leetcode 225. Implement Stack using Queues which is related to Stack & Queue.

Here’s a quick rundown of what you’re about to learn:

⭐️ Course Contents ⭐️
⌨️ (0:00) Question
⌨️ (1:40) Solution Explain
⌨️ (5:20) Code

In the end, you’ll have a really good understanding on how to solve Leetcode 225. Implement Stack using Queues and questions that are similar to this Stack & Queue.

Now, if you want to get good at Stack & Queue, please checkout my Stack & Queue playlist.

Рекомендации по теме
Комментарии
Автор

Awesome explanation! you are an absolute legend

meditationrelaxationsounds
Автор

suggestion-> YOU CAN USE WHITEBOARD TO EXPLAIN ND THEN CODE

Adelinde
Автор

Hi Eric, I have a question.

Will the top() method still work right after the pop() method is called? And what if the pop() method is called twice simultaneously?

Paul-jwdv