JS Solution (one line)


  • 1
    N
    var isAnagram = function(s, t) {
        return s.split('').sort().join('') == t.split('').sort().join('');
    };
    
    

Log in to reply
 

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