1
class Solution:
2
def truncateSentence(self, s: str, k: int) -> str:
3
words = s.split(" ")
4
return " ".join(words[0:k])

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0