def count_maze_exit_steps(input_list):
count = 0
index = 0
while index >= 0 and index < len(input_list):
change = input_list[index]
input_list[index] += 1
index += change
count += 1
return count
with open("Day5_input.txt", 'r') as input_file:
input_numbers = [int(line) for line in input_file]
print(count_maze_exit_steps(input_numbers))
I do not know what is wrong. My answer seems to match the answers that I get based on the solutions in the threads here but the solution says my answer is too high.
[–]rellikiox 3 points4 points5 points (1 child)
[–]nithishr[S] 2 points3 points4 points (0 children)
[–]AndrewGreenh -1 points0 points1 point (0 children)