Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli authored Jan 5, 2025
1 parent c15fb2c commit 1fe1dc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/aoc2024/day23/part2.jou
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def add_more_members_to_group(
memcpy(biggest_group, group, sizeof(group[0]) * group_len)

# Always add members in order, speeds up search a lot
assert group_len > 0
for i = group[group_len - 1] + 1; i < ncomputers; i++:
# Do not add same group member twice.
# Do not add members that don't connect with all existing members.
Expand All @@ -74,7 +75,9 @@ def add_more_members_to_group(
group_len + 1,
biggest_group,
biggest_group_len,
ncomputers, conn_matrix)
ncomputers,
conn_matrix,
)


def main() -> int:
Expand Down

0 comments on commit 1fe1dc7

Please sign in to comment.