frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Discuss – Do AI agents deserve all the hype they are getting?

2•MicroWagie•13m ago•0 comments

LLMs are powerful, but enterprises are deterministic by nature

3•prateekdalal•4h ago•2 comments

Ask HN: Anyone Using a Mac Studio for Local AI/LLM?

47•UmYeahNo•1d ago•29 comments

Ask HN: Non AI-obsessed tech forums

25•nanocat•15h ago•21 comments

Ask HN: Ideas for small ways to make the world a better place

15•jlmcgraw•17h ago•19 comments

Ask HN: 10 months since the Llama-4 release: what happened to Meta AI?

44•Invictus0•1d ago•11 comments

Ask HN: Who wants to be hired? (February 2026)

139•whoishiring•4d ago•515 comments

Ask HN: Who is hiring? (February 2026)

313•whoishiring•4d ago•512 comments

Ask HN: Non-profit, volunteers run org needs CRM. Is Odoo Community a good sol.?

2•netfortius•12h ago•1 comments

AI Regex Scientist: A self-improving regex solver

7•PranoyP•19h ago•1 comments

Tell HN: Another round of Zendesk email spam

104•Philpax•2d ago•54 comments

Ask HN: Is Connecting via SSH Risky?

19•atrevbot•2d ago•37 comments

Ask HN: Has your whole engineering team gone big into AI coding? How's it going?

18•jchung•2d ago•12 comments

Ask HN: Why LLM providers sell access instead of consulting services?

5•pera•1d ago•13 comments

Ask HN: What is the most complicated Algorithm you came up with yourself?

3•meffmadd•1d ago•7 comments

Ask HN: How does ChatGPT decide which websites to recommend?

5•nworley•1d ago•11 comments

Ask HN: Is it just me or are most businesses insane?

8•justenough•1d ago•7 comments

Ask HN: Mem0 stores memories, but doesn't learn user patterns

9•fliellerjulian•2d ago•6 comments

Ask HN: Is there anyone here who still uses slide rules?

123•blenderob•3d ago•122 comments

Kernighan on Programming

170•chrisjj•4d ago•61 comments

Ask HN: Any International Job Boards for International Workers?

2•15charslong•14h ago•2 comments

Ask HN: Anyone Seeing YT ads related to chats on ChatGPT?

2•guhsnamih•1d ago•4 comments

Ask HN: Does global decoupling from the USA signal comeback of the desktop app?

5•wewewedxfgdf•1d ago•3 comments

We built a serverless GPU inference platform with predictable latency

5•QubridAI•2d ago•1 comments

Ask HN: Does a good "read it later" app exist?

8•buchanae•3d ago•18 comments

Ask HN: How Did You Validate?

4•haute_cuisine•1d ago•6 comments

Ask HN: Have you been fired because of AI?

17•s-stude•4d ago•15 comments

Ask HN: Cheap laptop for Linux without GUI (for writing)

15•locusofself•3d ago•16 comments

Ask HN: Anyone have a "sovereign" solution for phone calls?

12•kldg•4d ago•1 comments

Ask HN: OpenClaw users, what is your token spend?

14•8cvor6j844qw_d6•4d ago•6 comments
Open in hackernews

Ask HN: Is it OK to look at AoC solutions?

7•ifh-hn•2mo ago
I'm yet again attempting AoC. I've never completed one yet. Mostly I get too busy on the run up to Christmas but sometimes I just get stuck.

This brings me to my question. If you are stuck is it OK to just look at a solution?

For me, I got stuck on Day 1 Part 2. No amount of hints worked, so I just found a solution. I managed to get the code to produce the correct answer. I still don't understand why, I'm not good at maths. AI can't ELI5 either.

So is it good to see how others solved the problem? Or just remain stuck, and not understanding why?

Personally I feel better about knowing a solution to the problem even if I didn't solve it myself, mostly because not knowing is worse.

Comments

red_Seashell_32•2mo ago
It’s better to look at other solutions, analyze and understand them to learn something new rather than giving up and not learning something new
weavie•2mo ago
The more you struggle at something the more you will learn. That works up to the point where the struggle is beyond your capacity for struggle - then you just get stuck. So ideally (assuming you are doing this because you want to learn something) you want to reduce the amount of struggle to just below your capacity.

Just copying someone else's solution, or getting an LLM to fix it for you will be very low struggle, so you won't learn much.

To add some struggle, maybe look up a solution in a different language and translate to your language? You could choose a solution in a language similar to your language, so if you are solving in C, perhaps look up a C# solution or to make it harder look up a solution in a different paradigm. Find a Haskell solution or a Prolog one and see if that gives you enough hints.

ifh-hn•2mo 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.

Jtsummers•2mo ago
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.
tomalaci•2mo ago
I usually give myself 30-60 mins to solve. If I can't do it by then I will look up solutions and -study- them (also break it piece by piece and see if I can generalize it for future problems). I would look at solutions even after solving it by myself.

I find that to be the best balance between challenge and learning something new. You will mentally burn yourself out if you keep bashing against the wall for hours or more, not quite a healthy thing to do :)

Meanwhile, people who actually try to compete on this stuff have already developed rich library of specialized algorithms to leap ahead of average programmer. Well, I guess nowadays a lot of it is LLM assisted too.

ifh-hn•2mo ago
Yeah, I definitely think there's benefit in seeing others solutions, and in this situation I want to learn from it, if I can ever reason out why it's working.

Certainly using nushell means anything beyond the true basics seems to be beyond most LLMs.

When I first started programming it used to get me down if I couldn't solve these things. But as I've got old and a little more experienced, I can now admit things like AoC are just not my thing. It's like crossword puzzles or low level algos. I find them extremely hard to reason about.

Jtsummers•2mo ago
Yes, it's ok to look. I generally don't until I've solved it, and then mostly to find hints on faster ways to solve it.

Instead of hints, try asking for, or finding, test cases. Several of us posted additional test cases that found most people's problems in part 2. Once you have a test case (with a small input size, so you can easily step through it by hand) you can usually identify the particular problems in your solution. This will also help you understand why it works.

If that still doesn't work, then find working solutions and try to understand them. Some people's solutions get really clever, don't worry about those. If it's not even remotely clear to you what's happening in it, it's not a solution you need to study yet. Find the simplest, brute force solutions first. Then find ones that look similar but are optimized in some way.

brudgers•2mo ago
Not being flippant.

You would probably learn more vibe coding a solution than just reading code.

Because your engagement would be active, you would practice useful technique, and have an opportunity to iterate.

Good luck.

ifh-hn•2mo ago
Nothing flippant about an honest opinion.

I think there's something to this except if you're using a language the llm doesn't know, like I am with nushell.

Day 2 for example I easily completed on my own with 2 very similar regex strings. However knowing regex to be slow I went looking for a more optimised solution. I found some python code that I mostly understood and attempted to rewrite the iterative solution into the functional nushell style and failed miserably. I turned to an llm for help only for it to waste my time with nonsense because nushell appears to be too new and changing too quickly for it.

brudgers•2mo ago
except if you're using a language the llm doesn't know

This is exactly what I was getting at.

You will learn more from trying to vibe nushell code than reading solutions.

From thinking about how nushell is like other languages that can be vibe coded to considering why you want to learn nushell.

Or to put it another way, the dog did not actually eat your homework.

vismit2000•2mo ago
https://github.com/norvig/pytudes/tree/main/ipynb Look at Norvig's solution - which are a good learning point for even those who are able to solve everything!