An tasc á lódáil…
A stadium wave moves one person at a time; here, the wave moves one letter at a time. Write wave, which creates a list of copies of s, each with one different letter capitalized. Spaces do not take part in the wave, so they should not produce their own string.
"hello"["Hello", "hEllo", "heLlo", "helLo", "hellO"]""[]"two words"["Two words", "tWo words", "twO words", "two Words", "two wOrds", "two woRds", "two worDs", "two wordS"]def wave(s: str) -> list[str]:
Logáil isteach chun stair na n-aighneachtaí a fheiceáil
Logáil isteachLogáil isteach chun an Meantóir IS a úsáid
Logáil isteach"hello"["Hello","hEllo","heLlo","helLo","hellO"]""[]"two words"["Two words","tWo words","twO words","two Words","two wOrds","two woRds","two worDs","two wordS"]" gap "[" Gap "," gAp "," gaP "]"a"["A"]" "[]