题解 | #字符串字符匹配#
字符串字符匹配
https://www.nowcoder.com/practice/22fdeb9610ef426f9505e3ab60164c93
const rl = require("readline").createInterface({ input: process.stdin }); var iter = rl[Symbol.asyncIterator](); const readline = async () => (await iter.next()).value; void async function () { // Write your code here const inputs = []; while(line = await readline()){ inputs.push(line) } let short = inputs[0]; let long = inputs[1]; for(let i=0;i<short.length;i++){ if(!long.includes(short[i])){ console.log(false) return } } console.log(true) }()