Ruby. # @param {String} s # @return {Integer} def min_flips_mono_incr(s) cur = s.count('0') ans = cur s.each_char do |c| if c == '0' cur ...
確定! 回上一頁