2017-04-09から1日間の記事一覧

Stepwise Word(CODEEVAL)

最大文字数の単語を抽出し、段階的に表示させる問題。 inject を with_index と組み合わせて利用できるというのを知れたのが収穫。 CHALLENGE DESCRIPTION: Print the longest word in a stepwise manner. INPUT SAMPLE: The first argument is a path to a …