2012-02-05から1日間の記事一覧

Rightmost Char

「カンマの前の文字列」に「カンマの後の文字」が右から何番目にあるかを表示。 なければ-1を表示する。 設問 You are given a string 'S' and a character 't'. Print out the position of the rightmost occurrence of 't'(case matters) in 'S' or -1 if …