首页 > 其他 > 详细

LeetCode344反转字符串

时间:2018-10-25 21:27:45      阅读:134      评论:0      收藏:0      [点我收藏+]

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         

 

LeetCode344反转字符串

原文:https://www.cnblogs.com/kianqunki/p/9852980.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!