C# solution


  • 0
    S
    public string ReverseString(string s) {
            StringBuilder reverse = new StringBuilder("");
            for (int i = (s.Length - 1); i >= 0; i--)
            {
                reverse.Append(s[i]);
            }
            return reverse.ToString();
        }
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.