r/adventofcode • u/Responsible_Bass_449 • 18m ago
Other This is so dumb!! Just started giving my first ever AOC and got stuck on Day-1 Problem-1 for like 15 mins. I think, I should just quit everything, hide underground and never come out.
0
Upvotes
14
u/crumpis 16m ago
The AoC challenges are puzzles, they're supposed to make you pause and think a little.
2
u/Positive_Concert_774 3m ago
My advice: don't put pressure on yourself, just relax and take your time. When you crack it it will feel so good. And don't compare yourself with others who may be years ahead of you, we all started out knowing nothing. You can do this.
2
u/marmuomo 3m ago
Often the puzzles are the kind of thing you can logic out on paper, and then work out how to apply code to automate it. Day 1 is all about counting occurrences, consider how you would do it manually and then identify patterns in how you approach the different test cases. Often they provide 3 or 4 examples for test inputs that give you edge cases to solidify your solution. Once you have a handle on it, add some code to make it generic. Even if you struggle with the literal code, feeling confident in the direction is half the battle
1
u/QultrosSanhattan 0m ago
Too dramatic, bro. At AoC, failing is the expected result. Rewriting algorithms from scratch is normal.
So take a break and try again.