Advent of Code 2017 in Go

xuanbao · · 414 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I&#39;ve decided to use Advent of Code to keep learning Go this year; is anyone else participating? Would love to check out your repos if so; here&#39;s mine: <a href="https://gitlab.com/drakonka/advent-of-code-2017">https://gitlab.com/drakonka/advent-of-code-2017</a></p> <p>For those who aren&#39;t familiar with Advent of Code, it is a fun yearly challenge where you get a new problem to solve each day (two parts per day): <a href="http://adventofcode.com/">http://adventofcode.com/</a></p> <hr/>**评论:**<br/><br/>reusing-code: <pre><p>Anyone interested in joining a <a href="/r/golang" rel="nofollow">/r/golang</a> leaderboard? I just created one, go to <a href="http://adventofcode.com/2017/leaderboard/private" rel="nofollow">http://adventofcode.com/2017/leaderboard/private</a> and use the code </p> <pre><code>235071-2acde629 </code></pre></pre>drakonka: <pre><p>Cool, I just joined. I am not really competitive with it though, just doing the puzzles in my own time and trying different kinds of solutions.</p></pre>reusing-code: <pre><p>Me neither, my only goal is to have a working solution at some point in time. I&#39;m not even sure if I want to share my code, since it&#39;s an absolute mess...</p></pre>drakonka: <pre><p>So is mine; I just submitted my first messy brute force iteration of day 3 part 1. Going to clean it up and try some other approaches after part 2 is done. I am not looking at the solutions in the other repos posted here until after getting at least one solution of my own that I&#39;m satisfied with (so not peeking at anything day 3 related yet). There is always a bit of a facepalm moment when I open some of the other approaches and see ways of doing it that I hadn&#39;t even thought of.</p></pre>ajgrf: <pre><p>Sweet, I just joined too.</p></pre>colezlaw: <pre><p><a href="https://github.com/colezlaw/advent2017">https://github.com/colezlaw/advent2017</a> - I&#39;ll warn you, my responses are not the most concise because I&#39;m trying to make sure I&#39;ve tested everything as much as possible before submitting my answers. I don&#39;t stay up late enough to even possibly end up on the leaderboard, so I&#39;m trying to write good code, not get my solution done the quickest.</p></pre>drakonka: <pre><p>I am the same way - I&#39;m using it as an opportunity to try different ways of implementing the solutions and benchmarking their performance. I&#39;m printing simple performance reports to text files for each puzzle, it might be fun to try and build some simple UI in Go to display them later.</p></pre>ajgrf: <pre><p><a href="https://github.com/ajgrf/advent" rel="nofollow">https://github.com/ajgrf/advent</a></p></pre>Pie_Napple: <pre><p>There is a buch of them in here: <a href="https://github.com/kodsnack/advent_of_code_2017" rel="nofollow">https://github.com/kodsnack/advent_of_code_2017</a></p></pre>TheCi: <pre><p>Not the most graceful pieces of code, but they work <a href="https://github.com/fbegyn/AoC2017" rel="nofollow">https://github.com/fbegyn/AoC2017</a></p></pre>dubyte: <pre><p><a href="https://github.com/dubyte/adventofcode2017" rel="nofollow">https://github.com/dubyte/adventofcode2017</a></p></pre>benjica: <pre><p><a href="https://github.com/benjic/adventofcode" rel="nofollow">https://github.com/benjic/adventofcode</a></p> <p>I coached kids in programming and am using using AoC with them. I&#39;m going for testable and concise to help teach patterns. </p></pre>drakonka: <pre><p>Nice! I am using it to try out different approaches and test their speed. Not the most elegant AoC repo, but I&#39;m learning from it.</p></pre>__Red_: <pre><p>I’ve been using repl.it but this has inspired me to create a repo</p></pre>mdwhatcott: <pre><ul> <li><a href="https://github.com/mdwhatcott/advent-of-code-2017" rel="nofollow">https://github.com/mdwhatcott/advent-of-code-2017</a></li> <li><a href="https://github.com/mdwhatcott/advent-of-code-2016" rel="nofollow">https://github.com/mdwhatcott/advent-of-code-2016</a></li> <li><a href="https://github.com/mdwhatcott/advent-of-code-2015" rel="nofollow">https://github.com/mdwhatcott/advent-of-code-2015</a> (still not finished!)</li> <li><a href="https://github.com/mdwhatcott/advent-of-code" rel="nofollow">https://github.com/mdwhatcott/advent-of-code</a> (utilities)</li> </ul> <p>Feel free to fork the 2017 repo and checkout the &#34;blank&#34; branch to get started with some helpful scaffolding already in place.</p></pre>Kraigius: <pre><p>This is pretty fun. </p> <p>I&#39;m struggling to use the container/ring package. I can&#39;t seems to be able to construct the ring in order. :(</p></pre>marz619: <pre><p><a href="https://github.com/marz619/aoc2017" rel="nofollow">https://github.com/marz619/aoc2017</a></p></pre>ddooo: <pre><p><a href="https://github.com/ddo/advent" rel="nofollow">https://github.com/ddo/advent</a> just done the day3 without creating the grid :)</p> <p>no bonus yet. </p></pre>drakonka: <pre><p>Nice. I managed to do part one without creating the <em>whole</em> grid, but for part two ended up generating the entire thing. </p></pre>ddooo: <pre><p>yeah i still thinking about the part 2 solution without creating the grid. possible?</p></pre>kindermoumoute: <pre><p><a href="https://github.com/kindermoumoute/adventofcode2017" rel="nofollow">https://github.com/kindermoumoute/adventofcode2017</a></p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

414 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传