Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Solution {
- public:
- /**
- * @param s: The first string
- * @param t: The second string
- * @return: true or false
- */
- bool anagram(string &s, string &t) {
- // write your code here
- if sorted(s) == sorted(t):
- return true
- else:
- return false
- }
- };
Add Comment
Please, Sign In to add comment