Skip to content

Fix a bug in the 'isFull' function#1

Open
jjosenaldo wants to merge 1 commit intobigodel:masterfrom
jjosenaldo:fix-stack-bug
Open

Fix a bug in the 'isFull' function#1
jjosenaldo wants to merge 1 commit intobigodel:masterfrom
jjosenaldo:fix-stack-bug

Conversation

@jjosenaldo
Copy link

The function is not properly checking the number of elements in the stack.

The topIndex field equals to the number of elements in the stack minus one
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.

1 participant