C# 1 line


  • 0
    P

    Using inbuilt c# functions for regular string

                using System.Linq;
                public string ReverseString(string s)
                {
                    return new string(s.Reverse().ToArray<char>());
                }
    

Log in to reply
 

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