提问 HN:看「代码解谜」的解题思路可以吗?
1 分•作者: ifh-hn•7 个月前
我又一次尝试了 AoC。但我从未完成过一个。大部分时候,我会在圣诞节前夕变得太忙,但有时我只是卡住了。
这就引出了我的问题。如果卡住了,直接看答案可以吗?
对我来说,我卡在了第一天的第二部分。无论多少提示都没用,所以我直接找到了一个答案。我设法让代码产生了正确的答案。我仍然不明白为什么,我不擅长数学。AI 也无法用简单的方式解释。
那么,看看别人是如何解决问题的,这样好吗?还是就一直卡着,不明白为什么?
就我个人而言,即使我没有自己解决问题,知道一个解决方案也会让我感觉更好,主要是因为不知道会更糟。
查看原文
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.<p>This brings me to my question. If you are stuck is it OK to just look at a solution?<p>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.<p>So is it good to see how others solved the problem? Or just remain stuck, and not understanding why?<p>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.