test should be failed when someone writes this code
else if (pattern[0] === "[" && pattern[pattern.length - 1] === "]") {
return pattern.slice(1, pattern.length - 1).includes(inputLine);
}
but you marked as even “concise” to that solution because your test case just testing as input “a” and pattern “[abc]”
Hi @atishay-aj, thanks for highlighting the issue! We’ll look into the test case and keep you updated once it’s fixed.
Sorry for the delayed response! The test cases for stage #tl6 have been hardened in this PR.
Let us know if you spot anything else!
system
Closed
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.