ARTS 第21周
ARTS 第21周分享 [TOC] Algorithm 242. Valid Anagram [easy] [题目描述] Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = "nagaram" Output: true Way One: [解题思路] 将字符串按照每个字符的值的大小排序, 比较两个byte slice 是否相等 [参考代码] type myBytes []byte func (my myBytes) Len() int { return len(my) } func (my myBytes)...阅读全文