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:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user