rm unnecessary console logs

This commit is contained in:
Elizabeth Hunt 2023-12-06 23:00:25 -07:00
parent 0b40afdc6b
commit bcd8071424
Signed by: simponic
GPG Key ID: 52B3774857EB24B1
2 changed files with 2 additions and 10 deletions

View File

@ -58,12 +58,8 @@ export const main = async (lines: string[]): Promise<number | string> => {
} }
return scoreOne - scoreTwo; return scoreOne - scoreTwo;
}); });
console.log(hands);
return hands.reduce((acc, { hand, bid }, i) => { return hands.reduce((acc, { bid }, i) => acc + bid * (i + 1), 0);
console.log(hand, bid, i + 1);
return acc + bid * (i + 1);
}, 0);
}; };
// //

View File

@ -71,12 +71,8 @@ export const main = async (lines: string[]): Promise<number | string> => {
} }
return scoreOne - scoreTwo; return scoreOne - scoreTwo;
}); });
console.log(hands);
return hands.reduce((acc, { hand, bid }, i) => { return hands.reduce((acc, { bid }, i) => acc + bid * (i + 1), 0);
console.log(hand, bid, i + 1);
return acc + bid * (i + 1);
}, 0);
}; };
// //