问HN:查看AoC解答可以吗?

1作者: ifh-hn2 个月前原帖
我又一次尝试参加AoC(圣诞倒计时编程挑战)。我从来没有完成过一次。大多数时候,我在圣诞节前的准备中忙得不可开交,但有时我就是卡住了。 这让我想到了我的问题。如果你卡住了,查看解决方案是否可以呢? 对我来说,我在第一天的第二部分卡住了。无论多少提示都没有用,所以我最终找到了一个解决方案。我成功地让代码输出了正确的答案。尽管如此,我仍然不明白为什么,我的数学水平不太好。人工智能也无法简单明了地解释。 那么,看看别人是如何解决这个问题的是否有帮助?还是干脆就一直卡住,不理解原因? 就我个人而言,我觉得知道问题的解决方案,即使我没有自己解决它,也让我感觉好一些,主要是因为不知道反而更糟。
查看原文
I&#x27;m yet again attempting AoC. I&#x27;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&#x27;t understand why, I&#x27;m not good at maths. AI can&#x27;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&#x27;t solve it myself, mostly because not knowing is worse.