rm unnecessary console logs
This commit is contained in:
parent
0b40afdc6b
commit
bcd8071424
@ -58,12 +58,8 @@ export const main = async (lines: string[]): Promise<number | string> => {
|
||||
}
|
||||
return scoreOne - scoreTwo;
|
||||
});
|
||||
console.log(hands);
|
||||
|
||||
return hands.reduce((acc, { hand, bid }, i) => {
|
||||
console.log(hand, bid, i + 1);
|
||||
return acc + bid * (i + 1);
|
||||
}, 0);
|
||||
return hands.reduce((acc, { bid }, i) => acc + bid * (i + 1), 0);
|
||||
};
|
||||
|
||||
//
|
||||
|
@ -71,12 +71,8 @@ export const main = async (lines: string[]): Promise<number | string> => {
|
||||
}
|
||||
return scoreOne - scoreTwo;
|
||||
});
|
||||
console.log(hands);
|
||||
|
||||
return hands.reduce((acc, { hand, bid }, i) => {
|
||||
console.log(hand, bid, i + 1);
|
||||
return acc + bid * (i + 1);
|
||||
}, 0);
|
||||
return hands.reduce((acc, { bid }, i) => acc + bid * (i + 1), 0);
|
||||
};
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user