ã¯ã¦ãªã¨ã³ã¸ãã¢ã¢ããã³ãã«ã¬ã³ãã¼2024 30æ¥ç®ã®è¨äºã§ãã
æ¨æ¥ã¯ id:vilagia ã® ぼくの考えた最強のアルゴリズムを雑に検証してみたら、想定通り駄目なアイディアだった話 - 隅田川ヘキサゴナルアンテナ ã§ããã
仿¥ã®è©±ããã¡ãã£ã¨ã¢ã«ã´ãªãºã é¢ä¿ããã
Advent of Code
adventofcode.com
Advent of Codeã¯12/1 - 25ã®25æ¥éã1æ¥ãã¤åºé¡ãããããºã«ãããã°ã©ãã³ã°ã§è§£ããã®ã§ãã
1æ¥ãã¤ãã¼ãããã£ã¦ãPart One/Twoã®âï¸ãåè¨50ã¹ã¿ã¼ãæããã®ãç®æ¨ã
éãã©ã³ãã³ã°ãããã¾ãããå®è¡é度ã¨ã³ã¼ãé·ã®çãã¯åããã¾ããã
èªåãç¥ã£ãã®ã¯ Advent of Code 2019 に挑戦している - すぎゃーんメモ ã§ããã
æ¨å¹´ããSwiftã³ãã¥ããã£ã§Advent of Codeãè§£ãæ´»åãèµ·ãã¦ãã¾ãã
We're excited for the Advent of Code challenge, and grateful to @ericwastl and his team of elves for their hard work. If you're using Swift to participate, come and join us here: https://t.co/MxN2zf6pbj #AdventOfCode pic.twitter.com/gWU5Y3xFaP
— Swift Language (@SwiftLang) December 1, 2024
ãªãã¸ããªãã³ãã¬ã¼ããç¨æããã¦ãã¾ãã
GitHub - swiftlang/swift-aoc-starter-example: Swift starter project for solving Advent of Code challenges.
èªåãæ¨å¹´ãããã£ã¬ã³ã¸ãã¦ãã¾ãããæ¨å¹´ã¯37ã¹ã¿ã¼ã§æ«æãã¦ãã¾ãã...
2024
2024å¹´ã¯ãç¡äºã«å®èµ°ãã¦50ã¹ã¿ã¼ãéæã§ãã¾ããð
github.comI just completed all 25 days of Advent of Code 2024! https://t.co/xfs6cyvT4P #AdventOfCode
— Yutaro Muta (@yutailang0119) December 28, 2024
ä»åã¯ç¡çãããæ©ãåé¡ã¯ Reddit ã Youtubeãè¦ãããã¦ãå®èµ°ãç®æãã¾ããã
Swift x Advent of Code
Advent of Codeã¯ã©ããªããã°ã©ãã³ã°è¨èª*1ã§ãææ¦ã§ãã¾ãã
ã³ã¼ãé·ãæ¡ç¹ãããªãã®ã§ãSwiftãããåãå°éãã¦æ¸ããã¨ãã§ãã¾ãã
ã¾ããæ£è¦è¡¨ç¾ãè¦æãªèªåãRegexBuilderã使ããã®ãããã¨ããã§ãã
apple/swift-algorithmãswift-collections
Swiftã®ãªãã¸ããªãã³ãã¬ã¼ãããå§ããã¨ãapple/swift-algorithmsãä¾åã«å
¥ã£ã¦ãã¾ãã
apple/swift-collections ã使ããç¶æ
ã«ãªã£ã¦ãã¾ãã
æ®æ®µã®ã¢ããªéçºã§ã¯åºä¼ãæ©ä¼ãå°ãªãã§ãããå¼ãåºãã«ããã¨å®å¿ã§ãã
ä»åã¯ä»¥ä¸ã使ãã¾ããã
Swift is full of helpful methods for solving the type of problems you'll find in Advent of Code, for those who are playing along. Here are a few examples from Swift and the Swift Algorithms core package that are helpful for the day 2 puzzle! ð§©#AdventOfCode pic.twitter.com/oOQgT7y1Q9
— Swift Language (@SwiftLang) December 3, 2024
ãã¿ã¼ã³ãè¦ã¤ãã
ããºã«ã®å¤ãã¯ãèãæ¹ããã¿ã¼ã³åã§ãã¾ãã
- ãããå ãã«ã¼ã«ã«åã£ã¦ç§»åãã¦ãã
- è¿·è·¯ã®æççµè·¯åé¡
- å帰å¦çã®ã¡ã¢å
ãã¡ãããããã ãã§ã¯è§£ããªãåé¡ãããã¾ãããããç¨åº¦æºåããã¦ããã¨æå©ã§ãã
èªåãææãä½ããªããé²ãã¦ã¾ãããToolKit
ããã¯ã¢ãã
æå¾ã«Advent of Code 2024ãããããããåé¡ãããã¯ã¢ãããã¾ãï¼
- Day 11: Plutonian Pebbles
- åé¡ã¯åç´ã§ãããPart Twoãã¤ã¡ã¼ã¸ãã¦Oneãè§£ããã¨ããã£ãåé¡ã§ããã
- Day 14: Restroom Redoubt
- ããããããã ãã©ãã·ã¹ãã çã«è§£ããªãç³»ã®åé¡ã§ãã...
- Day 20: Race Condition
- æççµè·¯åé¡ã«ãã¼ããçµã¿åãããã«ã¼ã«ã§ãããããã£ãã§ãã
- Day 24: Crossed Wires
- Part Twoãé£ããã¦ãæéããããã¾ãããè§£çã¯æåºã§ãããã©ä¸è¬åãä¸è¶³ãã¦ãã¦ãä¾ã®ãã¹ããéãã¦ããªãã
ãããå¹´ãï¼ððð
*1:ãããã¯ããã°ã©ãã³ã°ã§ã¯ãªãã¦ã