Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
queue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
algorithmique
lib_2021_malaspinas
queue
Merge requests
!1
is_empty
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
is_empty
is_empty
into
main
Overview
1
Commits
2
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Merged
guoguo.yu
requested to merge
is_empty
into
main
3 years ago
Overview
1
Commits
2
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Expand
as requested
0
0
Merge request reports
Viewing commit
87a0c123
Prev
Next
Show latest version
1 file
+
1
−
2
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
87a0c123
Update queue.c
· 87a0c123
guoguo.yu
authored
3 years ago
queue.c
+
1
−
2
Options
#include
"queue.h"
#include
"queue.h"
bool
is_empty
(
queue
q
){
bool
is_empty
(
queue
q
){
if
(
q
.
tail
<
0
)
return
true
;
return
(
q
.
tail
<
0
);
else
return
false
;
}
}
Loading