My 144ms JavaScript solution


  • 3
    E

    Here's my JavaScript solution, I figured I'd share since it said my run time beat 100% of JS submissions.

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

  • 0
    Q

    Good job, so concise.


Log in to reply
 

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