Skip to content

Commit 015bcdd

Browse files
authored
Update 1066-campus-bikes-ii.js
1 parent 5f4f96a commit 015bcdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1066-campus-bikes-ii.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const assignBikes = function(workers, bikes) {
1414
return
1515
}
1616
for(let j = 0; j < m; j++) {
17-
if(((mask >> j) ^ 1) % 2 == 1) {
17+
if((mask & (1 << j)) === 0) {
1818
dfs(i + 1, mask | (1 << j), cur + calc(i, j))
1919
}
2020
}

0 commit comments

Comments
 (0)