Expected Oddness

Alita found a string of n characters where each character of the string is either ‘0’ or ‘1’. The Oddness of the string is the number of occurrences of ‘1’ in it.


This is a companion discussion topic for the original entry at https://toph.co/p/hasan-s-string