Adding in more Algorithms and Data Structures implemented in Java

This commit is contained in:
Frank
2025-08-27 22:06:50 -06:00
parent eeb269ea63
commit 6a9d55e07d
6 changed files with 304 additions and 10 deletions

16
src/Stack.java Normal file
View File

@@ -0,0 +1,16 @@
public interface Stack {
// Add to Top
void push(int item);
// Remove from the top
int pop();
// Look at the first item
int peek();
// How many elements
int size();
// Is the stack empty
boolean isEmpty();
}