HTMLify
LeetCode - Check if a String Is an Acronym of Words - Go
Views: 315 | Author: abh
1 2 3 4 5 6 7 8 9 10 11 | func isAcronym(words []string, s string) bool { if len(words) != len(s) { return false } for i, c := range s { if byte(c) != words[i][0] { return false } } return true } |