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.(High roller, I know.)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.Maybe framing it as a bet will break the illusion that string length is ever required.