summaryrefslogtreecommitdiff
path: root/aoc_2023/day-07/part_2.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-12-06 23:00:25 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-12-06 23:00:25 -0700
commitbcd8071424e48a13e659ae095da7f4abf5e55646 (patch)
tree417968b9fa7d3650cb566aa562334307a2a44249 /aoc_2023/day-07/part_2.ts
parent0b40afdc6be3aa1b4303c0b11f03fa1cae9bf110 (diff)
downloadaoc-main.tar.gz
aoc-main.zip
rm unnecessary console logsHEADmain
Diffstat (limited to 'aoc_2023/day-07/part_2.ts')
-rw-r--r--aoc_2023/day-07/part_2.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/aoc_2023/day-07/part_2.ts b/aoc_2023/day-07/part_2.ts
index df8a947..1e6ae7d 100644
--- a/aoc_2023/day-07/part_2.ts
+++ b/aoc_2023/day-07/part_2.ts
@@ -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);
};
//