Description Difficulty: Easy Write a function that takes a string as input and returns the string reversed. Example1Given s = “hello”, return “olleh”. 反转字符串。 Solution 1234567 class (object): def reverseString(self, s): """ :type s: str :rtype: str """ return s[::-1] 赞微海报分享
近期评论