TIL the assumption that string length does not change when upper-cased is false
I'll paypal $20 to anyone who can name a situation where string length (in number of visible characters) is actually required by any reasonable algorithm.<p>(High roller, I know.)<p>No games, though. If you say "An algorithm to compute the length of the string in number of visible characters," that obviously is designed to pass the test rather than to do anything useful.<p>Maybe framing it as a bet will break the illusion that string length is ever required.