Ruby - Strings - Iteration

  • + 1 comment

    I ended up with: str.each_char.select {|ch| ch.each_byte.count > 1}.count