We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7940259 commit 8628055Copy full SHA for 8628055
1 file changed
src/main/java/com/williamfiset/algorithms/datastructures/queue/IntQueue.java
@@ -25,8 +25,7 @@ public class IntQueue implements Queue<Integer> {
25
private int size;
26
private int mask; // capacity - 1, for fast modulo via bitwise AND (requires power-of-2 capacity)
27
28
- // maxSize is the maximum number of items
29
- // that can be in the queue at any given time.
+ // maxSize is the maximum number of items that can be in the queue at any given time.
30
// Actual capacity is rounded up to the next power of 2 for fast wrapping.
31
public IntQueue(int maxSize) {
32
int capacity = 1;
0 commit comments