Skip to content

Commit 406a754

Browse files
authored
Update 1723-find-minimum-time-to-finish-all-jobs.js
1 parent 89ea113 commit 406a754

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

1723-find-minimum-time-to-finish-all-jobs.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@ const minimumTimeRequired = function(jobs, k) {
1717
res = Math.min(res, Math.max(...workers))
1818
return
1919
}
20-
const visited = new Set()
2120
const e = jobs[idx]
2221
for(let i = 0; i < k; i++) {
23-
if(visited.has(workers[i])) continue
2422
if(workers[i] + e >= res) continue
25-
visited.add(workers[i])
2623
workers[i] += e
2724
dfs(idx + 1)
2825
workers[i] -= e

0 commit comments

Comments
 (0)