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 6cbd0ef commit 8904022Copy full SHA for 8904022
src/main/java/stack/implementation/Array.java
@@ -83,7 +83,7 @@ public int peek() {
83
* <p><b>Complexity:</b> O(1) time and O(1) space.
84
*
85
* @return {@code true} if and only if this stack contains no items;
86
- * {@code false} otherwise.
+ * {@code false} otherwise.
87
*/
88
public boolean isEmpty() {
89
return top == -1;
@@ -95,7 +95,7 @@ public boolean isEmpty() {
95
96
97
* @return {@code true} if the stack has reached its maximum capacity;
98
99
100
public boolean isFull() {
101
return top == arr.length - 1;
0 commit comments