ANTEATER HELP NEEDED

I was trying the ANTEATER problem from yesterday’s challenge( JUNE cook-off).
I was able to figure out the solution but can not figure out the problem with my implementation of the solution. Any help is appreciated.

Problem Link
Solution Link

Edit: Solved it using a different implementation and same idea.

1 Like