SHARE
TWEET

Untitled

a guest Jul 17th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Solution {
  2.     fun numJewelsInStones(J: String, S: String): Int {
  3.           var answer = 0
  4.         for(j in J){
  5.           for(s in S){
  6.               if(j==s){
  7.                   answer++
  8.               }
  9.           }
  10.         }
  11.         return answer
  12.     }
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top