用最基本的遍历来实现判断字符串 a 是否被包含在字符串 b 中,并返回第一次出现的位置(找不到返回 -1) 例子: a='12';b='1234567'; // 返回 0 a='47';b='1234567'; // 返回 3 a='355';b='12354355'; // 返回 5 isContain(a,b);思路:解题“遍历,字符串“-->for in “判断包含” ==,!= function isContain(a,b){ for(let i in b){ if(a[0]==b[i]
Arcane Numbers 1 Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Practice HDU 4320 Description Vance and Shackler like playing games. One day, they are playing a game called "arcane numbers". The ga