Skip to content

Commit 4ccb4be

Browse files
committed
Update index.ts
1 parent 4b14d4e commit 4ccb4be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wildcard-matching/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function check_words(s: string, words: string[]): boolean {
8282

8383
// console.log(matched_array);
8484
if (!matched_array.length) return false;
85-
// matched_array.sort(() => Math.random() - 0.5);
85+
matched_array.sort(() => Math.random() - 0.5);
8686
const first_half = words.slice(0, mid_index);
8787
const second_half = words.slice(mid_index + 1);
8888
return matched_array.some((matched) => {

0 commit comments

Comments
 (0)