One line C# solution


  • 0
    R
        public bool IsAnagram(string s, string t) {
            return String.Concat(s.OrderBy(c => c)) == String.Concat(t.OrderBy(c => c));
        }
    

Log in to reply
 

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