Initial commit: AoC solutions 2023-2025
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
def nextCharIsSymbol(line, index):
|
||||
for i, char in enumerate(line[index:], start=index):
|
||||
if not char.isdigit():
|
||||
return True
|
||||
return False
|
||||
|
||||
# Example usage:
|
||||
my_line = "416.........................559...............417...............785.......900.......284...........503...796....992.........................."
|
||||
my_index = 3
|
||||
|
||||
result = nextCharIsSymbol(my_line, my_index)
|
||||
print(result)
|
||||
Reference in New Issue
Block a user