Skip to content

Commit a9b09b3

Browse files
committed
♻️ [211]
1 parent 510fd04 commit a9b09b3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

211/solution.js

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class WordDictionary {
2323
* @return {void}
2424
*/
2525
addWord(word) {
26-
2726
let root = this.root;
2827
for (let i = 0; i < word.length; i++) {
2928
let idx = root.getIdx(word[i]);

test.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@
5050

5151
// Fill
5252
// let o = Array.from({ length: 3 }, () => []);
53+
// let o = Array(3).fill([])//.map(() => []);
5354
// o[2] = [1, 3, 4]
5455
// console.log(o)
5556
//
56-
// let x = Array(3).fill([]);
57-
// x[1].push(2)
58-
// console.log(x)
57+
let x = Array(3).fill([]);
58+
x[1].push(2)
59+
// x[1] = 2
60+
console.log(x)
5961
//
6062
// const g = Array(3).fill().map(() => []);
6163
// console.log(g)
@@ -103,4 +105,3 @@
103105

104106
// Array
105107
// console.log(Array(26).fill(0));
106-

0 commit comments

Comments
 (0)