Ruby. def decode_string(s) 1 while s.gsub!(/(\d+)\[([a-z]*)\]/) { $2 * $1.to_i } s end. Comments: 26. Best Most Votes Newest to Oldest Oldest to Newest ...
確定! 回上一頁