Aupajo
  • Member for 1 year, 5 months
  • Last seen more than 1 year ago
Calculate average characters of string
1 votes

Ruby, 27 bytes putc gets.sum.quo(~/$/)+0.5 Solution produced through some collaborative golfing at work. How this works Kernel#putc prints a single character (e.g. putc "Hello" outputs H). ...

View answer