Die Aufgabe wird geladen…
In text analysis, it is often useful to quickly find the shortest word, for example when checking phrases or collecting simple stats. Write find_short, which takes a non-empty string s containing words separated by spaces. Return the length of the shortest word.
"bitcoin take over the world maybe who knows perhaps"3"turns out random test cases are easier than writing out basic ones"3"lets talk about javascript the best language"3def find_short(s: str) -> int:
Melde dich an, um den Einreichungsverlauf zu sehen
AnmeldenMelde dich an, um den KI-Mentor zu nutzen
Anmelden"bitcoin take over the world maybe who knows perhaps"3"turns out random test cases are easier than writing out basic ones"3"lets talk about javascript the best language"3"i want to travel the world writing code one day"1"Lorem ipsum dolor sit amet"3"a"1