C# solution


  • 0
    R

    public class Solution {
    public string ReverseString(string s) {
    char[] cArray = s.ToCharArray();
    Array.Reverse(cArray);
    return new string(cArray);
    }
    }


Log in to reply
 

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