Skip to content

Commit 2a3b9de

Browse files
authored
Update 368-largest-divisible-subset.js
1 parent 1582b0c commit 2a3b9de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

368-largest-divisible-subset.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const largestDivisibleSubset = function(nums) {
77
let m = 0;
88
let mi;
99
const T = new Array(len).fill(0);
10+
// T[n] should be the length of the largest divisible subset whose smallest number is a[n]
1011
const son = new Array(len).fill(0);
1112
nums.sort((a, b) => a - b);
1213
for (let i = 0; i < len; i++) {

0 commit comments

Comments
 (0)