Skip to content

Commit 9b91a20

Browse files
committed
fix: branch up-to-date merge error
1 parent ee31d7a commit 9b91a20

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
* Problem: https://www.baeldung.com/cs/stack-constant-time
1313
*/
1414
public class GreatestElementConstantTime {
15-
private Stack<Integer> mainStack;
16-
private Stack<Integer> maxStack;
15+
private Stack<Integer> mainStack; // initialize a mainStack
16+
private Stack<Integer> maxStack; // initialize a maxStack
1717

1818
/**
1919
* Constructs two empty stacks

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
* Problem: https://www.baeldung.com/cs/stack-constant-time
1313
*/
1414
public class SmallestElementConstantTime {
15-
private Stack<Integer> mainStack;
16-
private Stack<Integer> minStack;
15+
private Stack<Integer> mainStack; // initialize a mainStack
16+
private Stack<Integer> minStack; // initialize a minStack
1717

1818
/**
1919
* Constructs two empty stacks

0 commit comments

Comments
 (0)