Skip to content

Commit 93d1e29

Browse files
committed
Fix
1 parent faaf078 commit 93d1e29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/thealgorithms/stacks/StackUsingTwoQueues.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* A class that implements a stack using two queues.
99
* This approach ensures that the stack's LIFO (Last In, First Out) behavior
1010
* 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.
1113
*/
1214
public class StackUsingTwoQueues {
1315

0 commit comments

Comments
 (0)