Programming Praxis

Form Letters

Form Letters | Programming Praxisを解いてみました。 あるテキスト中に埋め込まれた $n を単語列中のn番目の要素で置き換えるという、簡単なテンプレートエンジンを作る問題です。 テンプレートとなるテキストを受け取って、単語リストを与えられたら文章…

Maximum Sum Subsequence

Programming Praxis | A collection of etudes, updated weekly, for the education and enjoyment of the savvy programmerというサイトにMaximum Sum Subsequence | Programming Praxisという問題があったので解いてみました。 cont-max2はほぼサイトに載…