Skip to content

optimization#864

Merged
yanglbme merged 1 commit into
TheAlgorithms:masterfrom
realDuYuanChao:master
Sep 26, 2019
Merged

optimization#864
yanglbme merged 1 commit into
TheAlgorithms:masterfrom
realDuYuanChao:master

Conversation

@realDuYuanChao

Copy link
Copy Markdown
Member

Remove at front of queue

  • front = (front + 1) % maxSize;

Insert at rear of queue

  • rear = (rear + 1) % maxSize;

@yanglbme yanglbme merged commit ee0a48f into TheAlgorithms:master Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants