# アルゴ式: 907 Q7. 箱の内部の箱の個数 (2) (Swift)

## [Q7. 箱の内部の箱の個数 (2)](https://algo-method.com/tasks/907)

- [昨日想像した通り](https://continuous-tumbling.com/algo909-q6-counting-descendants1-swift)、子孫の数をキューで複数回答える問題だった
- 実装を簡単にするために、最初からもう全部の答えを出してしまった
- 本当はちゃんと`inout`を使って配列を渡しりした方がいいのだろうな

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

### 提出

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