We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Severity: info • Confidence: high • Auto-fix: ❌
info
high
shift/unshift → Deque — Using Array#shift or Array#unshift is O(n). Use Deque for O(1) front operations.
Array#shift
Array#unshift
Deque
ary.unshift(x) ary.shift
Note
See bench results at bench/cat-005/
bench/cat-005/
There was an error while loading. Please reload this page.