Hacker News new | ask | show | jobs
by ifh-hn 203 days ago
I can see the benefit of the struggle, but in relation to Day 1 Part 2 I literally had no clue why what id written wasn't working or what I needed to do to fix it.

I'm using nushell this year for AoC. It's functional by nature though you can make it imperative, so it's out of my comfort zone.

However the problem is math based whatever language you're using, involving modulo and int division. I had an hunch it was about that but no sense of what to do or how to approach.

Having looked at multiple ways of doing it I still have no clue what's going on, only that it works.

1 comments

Ask for help explaining it. Check if a similar question has been asked already, but if not post your code to the subreddit and ask for help understanding why it works. The subreddit is friendly, people will answer if they see the question and can understand the code.