package LeetCode.Java;

/**
 * Created by Vonzpf on 17/3/25.
 */
public class ReverseString {
    public String reverseString(String s) {
        int n = s.length();
        char[] ReverseStringChar = new char[n];
        for (int i = n - 1; i >= 0; i--){
            System.out.println(i);
            ReverseStringChar[n-1-i] = s.charAt(i);
        }
        String ReverseString = String.valueOf(ReverseStringChar);
        return ReverseString;
    }
}

@@ -58,16 +58,270 @@
 25.%0A */%0A
+/**-------------------------Title---------------------------------%0A Write a function that takes a string as input and returns the string reversed.%0A%0A Example:%0A Given s = %22hello%22, return %22olleh%22.%0A%0A Subscribe to see which companies asked this question.%0A */%0A
 public c

344.Reverse String