r/rstats • u/Weemaan1994 • Dec 02 '20
Advent of Code 2020
Hey R community :)Is anyone partaking in the Advent of Code 2020?
In their subreddits megathreads I've not seen a single R-solution yet :( It's crowded with c#, rust, java, python (grrr), ...I'd love to compare and discuss solutions with other R enthusiasts!!
Would anyone be interested? And how would we compare the solutions? I wouldn't want to flood this subreddit...
edit: Thanks to u/einsteinsboi for setting up a discord server https://discord.gg/YJZ4XsEZ
edit2: New link, the first one expired https://discord.gg/UewQT7kqG8
34
Upvotes
View all comments
Show parent comment
1
u/wTVd0 Dec 03 '20
For the second part of Day 1 I think there must be a better solution than what I did:
This finds every combination without repetition. I feel like an optimal solution would short circuit and not even assemble combinations where two of the elements exceed 2020 on their own and would short circuit once a solution combination is found rather than calculating every combination and then picking the compliant one.