Skip to content

Commit 93be321

Browse files
committed
feat: Adding lesson12 implementation of leetcode with stack by Yemi
1 parent 50d10be commit 93be321

File tree

1 file changed

+4
-4
lines changed
  • lesson_12/structs_java/structs_app/src/main/java/com/codedifferently/lesson12

1 file changed

+4
-4
lines changed

lesson_12/structs_java/structs_app/src/main/java/com/codedifferently/lesson12/Stack.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ public void push(int value) {
1616
public int pop() {
1717
int topmostValue = 0;
1818
if (isEmpty()) {
19-
return Integer.parseInt(null);
19+
return Integer.parseInt(null);
2020
} else {
21-
topmostValue = top.val;
22-
top = top.next;
23-
return topmostValue;
21+
topmostValue = top.val;
22+
top = top.next;
23+
return topmostValue;
2424
}
2525
}
2626

0 commit comments

Comments
 (0)