LeetCode344反转字符串

LeetCode344反转字符串

未经博主同意,禁止瞎JB转载。

https://leetcode-cn.com/problems/reverse-string/description/

我的解答:

这道题用python做没有意义

1 class Solution(object):
2     def reverseString(self, s):
3         """
4         :type s: str
5         :rtype: str
6         """
7         return s[::-1]
8         

 

posted @ 2018-10-25 21:18  嬴政有条北冥的鱼  阅读(93)  评论(0)    收藏  举报