首页
Java
登录
6mi
u
盘
搜
搜 索
Java
Leetcode学习(9)——Reverse String
Leetcode学习(9)——Reverse String
xiaoxiao
2021-02-28
114
Write a function that takes a string as input and returns the string reversed.
Example: Given s =
"hello"
,
return
"olleh"
.
class
Solution
(object)
:
def
reverseString
(self, s)
:
return
s[::-
1
]
转载请注明原文地址: https://www.6miu.com/read-49413.html
技术
最新回复
(
0
)