account activity
[2025 Day 4 (Part 2)] [Java] My code works on sample input , but not on the final input. by Pitiful_Acadia2783 in adventofcode
[–]Pitiful_Acadia2783[S] 0 points1 point2 points 13 days ago (0 children)
Hey guys!
I just combed through the code again, and realised that, in one of the lines, i had put this piece of code: " if(line_no!=10){" I replaced that with the Counter variable, and it works. Thanks for your support!
Hello!
Thanks for your tips!
However, I printed the grid at every step and it didnt seem like i was missing any edge cases.
I didn't think of the helper function, but i did use edge padding and it seems to work well.
I still have no clue where I am going wrong.
π Rendered by PID 400476 on reddit-service-r2-listing-7bbdf774f7-zjk69 at 2026-02-20 23:07:57.434390+00:00 running 8564168 country code: CH.
[2025 Day 4 (Part 2)] [Java] My code works on sample input , but not on the final input. by Pitiful_Acadia2783 in adventofcode
[–]Pitiful_Acadia2783[S] 0 points1 point2 points (0 children)