2014-07-30から1日間の記事一覧

FIND A WRITER(CodeEval)

西村京太郎先生は海外でも有名なんですね。 CHALLENGE DESCRIPTION: You have a set of rows with names of famous writers encoded inside. Each row is divided into 2 parts by pipe char (|). The first part has a writer's name. The second part is a…

SWAP CASE(CodeEval)

CHALLENGE DESCRIPTION: Write a program which swaps letters' case in a sentence. All non-letter characters should remain the same. INPUT SAMPLE: Your program should accept as its first argument a path to a filename. Input example is the fol…

CAPITALIZE WORDS(CodeEval)

CHALLENGE DESCRIPTION: Write a program which capitalizes the first letter of each word in a sentence. INPUT SAMPLE: Your program should accept as its first argument a path to a filename. Input example is the following Hello world javaScrip…

PENULTIMATE WORD(CodeEval)

CHALLENGE DESCRIPTION: Write a program which finds the next-to-last word in a string. INPUT SAMPLE: Your program should accept as its first argument a path to a filename. Input example is the following some line with text another line Each…