标签:span one return bsp and strlen ++ pre color
C语言:
int numJewelsInStones(char * J, char * S){ int c=0; int a = strlen(J); int b = strlen(S); for(int i=0;i<a;i++) { for(int j=0;j<b;j++) { if(J[i] == S[j]) { c++; } } } return c; }
LeetCode 771:Jewels and Stones
标签:span one return bsp and strlen ++ pre color
原文地址:https://www.cnblogs.com/datsno1/p/10980251.html