TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Advent of Code 2023 Day 2: Cube Conundrum

26 pointsby susanthenerdover 1 year ago

3 comments

vacuityover 1 year ago
I think the description of the cube game is ambiguous, and I initially misunderstood it. I&#x27;ll start off by saying, no shade to the AoC people, and I greatly appreciate and respect their efforts. Just pointing it out.<p>The intended meaning is that in each game, a set of red, green, and blue cubes is taken out of the bag, replaced, another set is taken out, and so on until the game ends. I think the example can be understood in the meaning that all sets listed for the game are taken out and replaced as a group. That is, these are mutually exclusive subsets of the bag&#x27;s contents. The example only shows games that are strictly valid or invalid for both interpretations. It didn&#x27;t show a game that had individually valid sets but a sum of some color that exceeded the maximum. For example,<p>Game N: 4 red, 5 blue, 4 green; 3 green, 2 blue, 7 red; 2 blue, 8 red<p>would require at least 19 red cubes by my initially understood meaning, and only 8 red cubes by the intended meaning. The misunderstanding can be disproved from the part 2 description, but I was on part 1 at the time. The phrasing of the rationale for invalidating games 3 and 4 in the example perhaps leans towards the intended meaning, but subtly.
评论 #38501617 未加载
yetanother12345over 1 year ago
Why, oh why? A choice between four American multinationals is no choice at all, IMHO<p><pre><code> To play, please identify yourself via one of these services: [GitHub] [Google] [Twitter] [Reddit]</code></pre>
评论 #38502576 未加载
Fiahilover 1 year ago
&gt; You&#x27;re launched high into the atmosphere! The apex of your trajectory just barely reaches the surface of a large island floating in the sky.<p>I got some serious Zelda: Tear of the Kingdom vibe reading this !
评论 #38499434 未加载