Skip to content

Commit

Permalink
fix: remaining missing props from graph edges
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAegis committed Dec 11, 2023
1 parent 24258c6 commit 449f8ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions solutions/typescript/2022/22/src/cube-map.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export class CubeMap<T extends ToString> {
from: node,
to: neighbouringNode,
weight: 0,
direction,
});
} else if (neighbouringNode !== alreadyFoundNeighbour.to) {
throw new Error('Found a different face for an existing neighbour');
Expand Down
1 change: 1 addition & 0 deletions solutions/typescript/2022/22/src/p2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export const p2 = (input: string): number => {
to,
data: reverseDirection.turn(180),
weight: from.value === to.value ? 0 : Number.POSITIVE_INFINITY,
direction,
});
}
}
Expand Down

0 comments on commit 449f8ce

Please sign in to comment.