# アルゴ式: 887 Q5. 括弧列の対応関係 (1) (Swift)

## [Q5. 括弧列の対応関係 (1)](https://algo-method.com/tasks/887)

- スタックをイメージしつつ、深さを測るだけで良いので、スタックを使わずに解いてしまった
- 最初、enumでCharacter指定ができなかったのと、配列にした方が解きやすいかなと思って提出
- その後、もう一度試したら結局何も問題なく解けた
- `enumerated`を忘れがちだからいつでも引き出せるようになりたい
- parenthesisのスペルが覚えられない

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

### 提出

- [`[String]`](https://algo-method.com/submissions/409373)
- [`[Character]`](https://algo-method.com/submissions/409375)
