第十周_Leetcode

题目: 344. Reverse String 题目描述: Write a function that takes a string as input and returns the string reversed. 测试样例: Given s = "hello", return "olleh". 思路分析: string是不可变数组类型,要想改变字符串顺序需要采用s1 = s1[:i]+s[n-
相关文章
相关标签/搜索