The math was hurting my head for part two. Then I realized I could think outside the box and make it easier on myself. I guess it may be a brute force approach.
For each command, create an array. Then count the zeros that show up and add to running total. For example, starting at 50 with a command “L5” would produce [49,48,47,46,45]
View all comments
Show parent comment
1
u/stealthshark7 Dec 06 '25
The math was hurting my head for part two. Then I realized I could think outside the box and make it easier on myself. I guess it may be a brute force approach.
For each command, create an array. Then count the zeros that show up and add to running total. For example, starting at 50 with a command “L5” would produce [49,48,47,46,45]