You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
removes the front element in the queue. It uses a pointer to get the front element and only remove popped elements when reaching half size of the queue.
126
126
127
127
```js
128
128
console.log(deque.popFront()); // 10
129
129
console.log(deque.front()); // 20
130
130
```
131
131
132
-
### .popBack()
132
+
### popBack
133
133
removes the back element in the queue. It uses a pointer to get the back element and only remove popped elements when reaching half size of the queue.
0 commit comments