We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faaf078 commit 93d1e29Copy full SHA for 93d1e29
src/main/java/com/thealgorithms/stacks/StackUsingTwoQueues.java
@@ -8,6 +8,8 @@
8
* A class that implements a stack using two queues.
9
* This approach ensures that the stack's LIFO (Last In, First Out) behavior
10
* is maintained by utilizing two queues for storage.
11
+ * The mainQueue is used to store the elements of the stack, while the tempQueue
12
+ * is used to temporarily store elements during the push operation.
13
*/
14
public class StackUsingTwoQueues {
15
0 commit comments