# アルゴ式: 885 Q2. 開いた筒とボール (キュー) (Swift)

## [Q2. 開いた筒とボール (キュー)](https://algo-method.com/tasks/885)

- キューのコンセプトの問題
- [`popFirst()`](https://developer.apple.com/documentation/swift/arrayslice/1687956-popfirst)ならO(1)ということでArraySliceで実装
- 雑なFIFOとして使う分には楽

[editorial]: https://algo-method.com/tasks/885/editorial

### 提出

- [AC](https://algo-method.com/submissions/404695)
