Skip to content

Commit d8323c8

Browse files
Update CircularQueue.js
Adding "this" to checkEmpty()
1 parent 7adf170 commit d8323c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Data-Structures/Queue/CircularQueue.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class CircularQueue {
7777

7878
// Displays the length of queue
7979
length() {
80-
return checkEmpty() ? 0 : this.queue.length - 1
80+
return this.checkEmpty() ? 0 : this.queue.length - 1
8181
}
8282

8383
// Display the top most value of queue

0 commit comments

Comments
 (0)