Open sunreaver opened 7 months ago
When calling queue.Enqueue (4), the queue is full and will be calling queue.Dequeue --> queue. start++
queue.Enqueue (4)
queue.Dequeue
queue. start++
so the queue.Peek will return queue.values[queue. start] is 2
queue.Peek
queue.values[queue. start]
Issues 0 New issues 0 Accepted issues
Measures 0 Security Hotspots No data about Coverage No data about Duplication
See analysis details on SonarCloud
When calling
queue.Enqueue (4)
, the queue is full and will be callingqueue.Dequeue
-->queue. start++
so the
queue.Peek
will returnqueue.values[queue. start]
is 2