Skip to content

Commit

Permalink
Re: Day 14
Browse files Browse the repository at this point in the history
  • Loading branch information
kzlsakal committed Dec 14, 2020
1 parent 63491ef commit ba6756f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions challenges/2020/14.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const getKeyVal = (cmd) => {
return [key.slice(4, -1), val];
};

const unmaskBits = (keyVal, mask, maskIdx, skipedChar) => {
keyVal = getKeyVal(keyVal);
const unmaskBits = (cmd, mask, maskIdx, skipedChar) => {
const keyVal = getKeyVal(cmd);
keyVal[maskIdx] = Number(keyVal[maskIdx])
.toString(2)
.padStart(36, '0')
Expand Down

0 comments on commit ba6756f

Please sign in to comment.