2024(9): solve part 1 and some

Committed on the 8th of January, 2025, so I do not know what I did.
This commit is contained in:
2024-12-29 02:42:11 +01:00
parent 83685c7511
commit 4a94b3f018
2 changed files with 23 additions and 2 deletions

View File

@ -19,7 +19,7 @@ def disk_map_to_blocks(disk_map: str) -> list:
return blocks
def move_ltr_to_empty_space(blocks: list) -> str:
def move_blocks_ltr_to_empty_space(blocks: list) -> str:
left = 0
right = len(blocks) - 1
@ -53,7 +53,7 @@ if __name__ == "__main__":
print("Blocks:")
print(blocks)
result = move_ltr_to_empty_space(blocks)
result = move_blocks_ltr_to_empty_space(blocks)
if verbose:
print()