We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6013cbb commit f49b643Copy full SHA for f49b643
1723-find-minimum-time-to-finish-all-jobs.js
@@ -26,6 +26,7 @@ const minimumTimeRequired = function(jobs, k) {
26
workers[i] += e
27
dfs(idx + 1)
28
workers[i] -= e
29
+ if(workers[i] === 0) break
30
}
31
32
};
0 commit comments