HTMLify
LeetCode - Jewels and Stones - Go
Views: 203 | Author: abh
func numJewelsInStones(jewels string, stones string) int {
var count int
for _, j := range jewels {
for _, s := range stones {
if j == s {
count++
}
}
}
return count
}