30:00
Given a string s, return the string after replacing every uppercase letter with the same lowercase letter.
s
1 <= s.length <= 100
s consists of printable ASCII characters.
Run code to see results.
In ASCII, 'A'..'Z' are 65..90 and 'a'..'z' are 97..122: each lowercase letter is its uppercase code plus 32, which is exactly bit 5.
s (top) to out (bottom)
read 0/5 · lowered 0
+32
=
bits of the current character
128
64
32
16
8
4
2
1
'A' = 0100 0001 and 'a' = 0110 0001 differ only in the 32 bit.
out
Given a string s, return it with every uppercase English letter turned into the matching lowercase letter, leaving every other character alone.