Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[재호] WEEK 02 Solutions #339

Merged
merged 8 commits into from
Aug 25, 2024
11 changes: 11 additions & 0 deletions valid-anagram/wogha95.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// TC: O(N * log N)
// SC: O(N)

/**
* @param {string} s
* @param {string} t
* @return {boolean}
*/
var isAnagram = function(s, t) {
return s.split('').sort().join('') === t.split('').sort().join('');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오..... 나누고 정렬하고 합치고 좋네요 배워갑니다!

};