Add the following code to your project's shard.yml under:
dependencies
to use in production
- OR -
development_dependencies
to use in development
3 Doors to Heaven Puzzle Asked in Google Interview - Interview Riddlesを再現するシュミレータです。
3つドアがある。
1つ目のドアは天国につながっている。
2つ目のドアは1日地獄に行ったあと、3つドアがある場所に戻ってくる。
3つ目のドアは2日地獄に行ったあとに、3つドアのある場所に戻ってくる。
平均何日で天国へ行けるか?
このレポジトリを任意の場所にクローンしてください。
$ make build
$ ./bin/3_doors_to_heaven 試行回数
$ ./bin/k_doors_to_heaven 試行回数 ドア枚数
TODO: Write development instructions here
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)