解题用python不是更简单# JobHunting - 待字闺中
P*e
1 楼
比如,reverse words in a string. Python 就两行
def reverseWords2(self, s):
words = s.split()
return ' '.join(words[::-1]).strip()
面试时对方会让你这么干吗
def reverseWords2(self, s):
words = s.split()
return ' '.join(words[::-1]).strip()
面试时对方会让你这么干吗