Notiek uzdevuma ielāde…
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:
Pieslēdzies, lai redzētu iesniegumu vēsturi
PieslēgtiesPieslēdzies, lai izmantotu AI mentoru
Pieslēgties"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