Guest User

Untitled

a guest
Jul 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. func numJewelsInStones(J string, S string) int {
  2. count := 0
  3. for _, s:= range S {
  4. for _,j := range J {
  5. if s == j {
  6. count +=1
  7. }
  8. }
  9. }
  10. return count
  11. }
Add Comment
Please, Sign In to add comment