[LeetCode]344. Reverse String
2017-09-24 21:16
330 查看
Write a function that takes a string as input and returns the string reversed.
咦,我刚做完557就来做这道题,它要是早点出现我也不会写557写了那么久(;′⌒`) 摔桌
Example:
Given s = “hello”, return “olleh”.代码长这样~
class Solution { public String reverseString(String s) { return new StringBuffer(s).reverse().toString(); } }
咦,我刚做完557就来做这道题,它要是早点出现我也不会写557写了那么久(;′⌒`) 摔桌
相关文章推荐
- leetcode344: Reverse String
- LeetCode344. Reverse String
- 【Leetcode】:344. Reverse String 问题 in JAVA
- LeetCOde 344. Reverse String
- [leetcode] 344. Reverse String 解题报告
- leetcode--344.Reverse String
- (leetcode)344. Reverse String
- LeetCode 344: Reverse String (字符串翻转)
- leetcode 344 Reverse String (in java)
- leetcode 344 Reverse String
- LeetCode:344. Reverse String
- 字符串-leetcode 344 Reverse String
- leetcode 344. Reverse String
- LeetCode-344. Reverse String-Java
- [LeetCode]344. Reverse String
- [Leetcode] 344. Reverse String 解题报告
- leetcode 344 Reverse String
- [Leetcode从零开刷]344. Reverse String
- leetcode344. Reverse String
- Python [Leetcode 344]Reverse String