Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
Vector 2023
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SAIL Mohamed amine
Vector 2023
Commits
fe7db8ae
Commit
fe7db8ae
authored
Oct 19, 2023
by
SAIL Mohamed amine
Browse files
Options
Downloads
Patches
Plain Diff
exo1 et 2 finalisation
parent
57daf9ac
No related branches found
No related tags found
No related merge requests found
Pipeline
#21405
failed
Oct 19, 2023
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/Stack.java
+8
-3
8 additions, 3 deletions
src/main/java/Stack.java
with
8 additions
and
3 deletions
src/main/java/Stack.java
+
8
−
3
View file @
fe7db8ae
...
@@ -9,14 +9,19 @@ public class Stack {
...
@@ -9,14 +9,19 @@ public class Stack {
v
.
add
(
value
);
v
.
add
(
value
);
}
}
int
peek
(){
int
peek
(){
return
v
.
get
(
v
.);
return
v
.
get
(
v
.
size
()
);
}
}
int
pop
(){
int
pop
(){
this
.
pop
();
return
this
.
peek
();
}
}
int
size
(){
int
size
(){
return
v
.
size
();
return
this
.
v
.
size
();
}
boolean
isEmpty
(){
return
this
.
v
.
isEmpty
();
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment