We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
function isValid(str, judge) { let j = 0; for (let i = 0; i < str.length; i++) { if (str[i] === judge[j] && j < judge.length) j++; } return j === judge.length; } console.log(isValid("Bytedance", "BD")); console.log(isValid("ByteDance", "BD"));
Sorry, something went wrong.
function judge(str,abbr){ return str.match(/[A-Z][a-z]*/g).map(item=>item[0]).join('') === abbr }
function pd(str, bz) { let j = 0 for (let k = 0; k < str.length; k++) { if (bz[j] === str[k]) j++ if (j === bz.length) return true } return j === bz.length if (j === bz.length) return true else return false } console.log(pd('Bytedance', 'BD')) console.log(pd('ByteDance', 'BD'))
function isTuofeng(str, judge) { let reg = /[A-Z]/g; let st = str.match(reg).join(""); return st === judge; } console.log(isTuofeng("ByteDance", "BD")); console.log(isTuofeng("Bytedance", "BD"));
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: