leetcode刷题过程的笔记
这道题主要考察的是字符串的索引。
python代码如下:
class Solution(object):
def reverseString(self, s):
return s[::-1]
leetcode刷题过程的笔记
这道题主要考察的是字符串的索引。
python代码如下:
class Solution(object):
def reverseString(self, s):
return s[::-1]