leetcode 344. Reverse String

Write a function that takes a string as input and returns the string reversed.

public class Solution {
    public String reverseString(String s) {
         if(s==null || s.length()==0){
            return s;
        }
        int left = 0;
        int right = s.length()-1;
        char[] sChar = s.toCharArray();
        while(left
请使用浏览器的分享功能分享到微信等