We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b14d4e commit 4ccb4beCopy full SHA for 4ccb4be
wildcard-matching/index.ts
@@ -82,7 +82,7 @@ function check_words(s: string, words: string[]): boolean {
82
83
// console.log(matched_array);
84
if (!matched_array.length) return false;
85
- // matched_array.sort(() => Math.random() - 0.5);
+ matched_array.sort(() => Math.random() - 0.5);
86
const first_half = words.slice(0, mid_index);
87
const second_half = words.slice(mid_index + 1);
88
return matched_array.some((matched) => {
0 commit comments