fix(day_6): part B done in a real dirty way, not happy but happy
This commit is contained in:
@@ -97,9 +97,9 @@ export async function read_problems_as_cephalopod(
|
||||
|
||||
// FIXME: this is really the dirtiest shit I've ever seen
|
||||
const spaces: string[] = [];
|
||||
spaces.fill(" ", 0, 400);
|
||||
spaces.fill("0", 0, 400);
|
||||
const rows = problem_text.split("\n").map((row) =>
|
||||
`${row}${spaces.join("")}-`
|
||||
`${row}${spaces.join("")}`
|
||||
);
|
||||
|
||||
const operands_row = rows.splice(-2);
|
||||
|
||||
Reference in New Issue
Block a user