This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-21
Channels
- # adventofcode (24)
- # announcements (1)
- # beginners (122)
- # braveandtrue (9)
- # calva (45)
- # cider (24)
- # cljdoc (8)
- # cljs-dev (23)
- # clojure (112)
- # clojure-europe (2)
- # clojure-india (2)
- # clojure-italy (36)
- # clojure-nl (3)
- # clojure-spec (32)
- # clojure-uk (35)
- # clojurescript (52)
- # core-typed (12)
- # cursive (4)
- # datomic (61)
- # emacs (4)
- # figwheel-main (2)
- # fulcro (14)
- # hoplon (5)
- # hyperfiddle (1)
- # jobs-discuss (6)
- # kaocha (5)
- # leiningen (2)
- # nrepl (15)
- # off-topic (62)
- # re-frame (26)
- # reagent (39)
- # ring (3)
- # shadow-cljs (56)
- # spacemacs (8)
- # specter (5)
- # tools-deps (1)
- # yada (2)
I think I’ve lost interest in aoc entirely. I feel compelled to finish, but today is another non-coding puzzle. YAWN
I’m going to sleep on part 2. Maybe I’ll care in the morning. Maybe not. Maybe this is how everyone felt after day 15.
It does take some code to get part two in a reasonable time. I don't mind as much that the puzzles take different forms; I end up using a lot of code to verify behavior, etc
@norman I don't think ^N(N)N$
is a valid input (within day's rules): (N)
does not loop back to where it started, so )N
can't follow it.
some day21:P2 stats to help others to debug:
instructions count: 2474020011
loop length: 10711
solution int: 13192622
"Elapsed time: 848641.379538 msecs" = 14 min (with prn, so slower than it is)
I started by building the graph in full, then doing a standard BFS w/ 'visited' set, and it completes almost instantly. Are you combining the parse with the search? And does the 'loop' assumption hold in all cases?
are you talking about day 21? : ) because I am. if "yes" how would you build instructions graph w/o simulation?
I'm starting doubt some section of my code for day 20. Would someone send me their input and expected results?
https://github.com/akovantsev/adventofcode/blob/master/src/adventofcode/2018/day20.clj#L90-L96
That was the elf-goblin battle. It was a ton of code to write. Looked like very many people disliked the problem.
https://github.com/nikolakasev/clojure-playground/blob/master/src/advent_of_code_2018/dec15.clj, feedback on readability is welcome, I'm learning Clojure while doing AoC.
all scores so far. data science anyone? https://gist.github.com/borkdude/d7f42d4110e8a330d1d70f9242b14496