-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<meta name="generator" content="Docusaurus v2.2.0"> | ||
<title data-rh="true">Day 9: Mirage Maintenance | Scala Center Advent of Code</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://scalacenter.github.io/scala-advent-of-code/2023/puzzles/day09"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docusaurus_version" content="current"><meta data-rh="true" name="docusaurus_tag" content="docs-default-current"><meta data-rh="true" name="docsearch:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="Day 9: Mirage Maintenance | Scala Center Advent of Code"><meta data-rh="true" name="description" content="by @SethTisue"><meta data-rh="true" property="og:description" content="by @SethTisue"><link data-rh="true" rel="icon" href="/scala-advent-of-code/img/favicon.ico"><link data-rh="true" rel="canonical" href="https://scalacenter.github.io/scala-advent-of-code/2023/puzzles/day09"><link data-rh="true" rel="alternate" href="https://scalacenter.github.io/scala-advent-of-code/2023/puzzles/day09" hreflang="en"><link data-rh="true" rel="alternate" href="https://scalacenter.github.io/scala-advent-of-code/2023/puzzles/day09" hreflang="x-default"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc" crossorigin="anonymous"> | ||
<script src="https://plausible.scala-lang.org/js/script.js" defer="defer" async data-domain="scalacenter.github.io"></script><link rel="stylesheet" href="/scala-advent-of-code/assets/css/styles.a9b21952.css"> | ||
<link rel="preload" href="/scala-advent-of-code/assets/js/runtime~main.9d085ce3.js" as="script"> | ||
<link rel="preload" href="/scala-advent-of-code/assets/js/runtime~main.c59d6dd7.js" as="script"> | ||
<link rel="preload" href="/scala-advent-of-code/assets/js/main.52f1de22.js" as="script"> | ||
</head> | ||
<body class="navigation-with-keyboard"> | ||
|
@@ -45,7 +45,7 @@ | |
suggests "Adding the new values on the left side of each sequence from | ||
bottom to top", and this suggestion can be turned into code.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="solutions-from-the-community">Solutions from the community<a class="hash-link" href="#solutions-from-the-community" title="Direct link to heading"></a></h2><ul><li><a href="https://github.com/Jannyboy11/AdventOfCode2023/blob/master/src/main/scala/day09/Day09.scala" target="_blank" rel="noopener noreferrer">Solution</a> of <a href="https://twitter.com/JanBoerman95" target="_blank" rel="noopener noreferrer">Jan Boerman</a>.</li><li><a href="https://github.com/guycastle/advent_of_code_2023/blob/main/src/main/scala/days/day09/DayNine.scala" target="_blank" rel="noopener noreferrer">Solution</a> by <a href="https://github.com/guycastle/" target="_blank" rel="noopener noreferrer">Guillaume Vandecasteele</a></li><li><a href="https://github.com/jnclt/adventofcode2023/blob/main/day09/mirage-maintenance.sc" target="_blank" rel="noopener noreferrer">Solution</a> by <a href="https://github.com/jnclt" target="_blank" rel="noopener noreferrer">jnclt</a></li><li><a href="https://github.com/lenguyenthanh/aoc-2023/blob/main/Day09.scala" target="_blank" rel="noopener noreferrer">Solution</a> by <a href="https://github.com/lenguyenthanh" target="_blank" rel="noopener noreferrer">Thanh Le</a></li><li><a href="https://github.com/spamegg1/advent-of-code-2023-scala/blob/solutions/09.worksheet.sc#L134" target="_blank" rel="noopener noreferrer">Solution</a> by <a href="https://github.com/spamegg1" target="_blank" rel="noopener noreferrer">Spamegg</a></li><li><a href="https://github.com/prinsniels/AdventOfCode2023/blob/main/src/main/scala/solutions/day09.scala" target="_blank" rel="noopener noreferrer">Solution</a> by <a href="https://github.com/prinsniels" target="_blank" rel="noopener noreferrer">Niels Prins</a></li><li><a href="https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day09.scala" target="_blank" rel="noopener noreferrer">Solution</a> by <a href="https://github.com/bishabosha" target="_blank" rel="noopener noreferrer">Jamie Thompson</a></li><li><a href="https://github.com/xRuiAlves/advent-of-code-2023/blob/main/Day9.scala" target="_blank" rel="noopener noreferrer">Solution</a> by <a href="https://github.com/xRuiAlves/" target="_blank" rel="noopener noreferrer">Rui Alves</a></li><li><a href="https://github.com/YannMoisan/advent-of-code/blob/master/2023/src/main/scala/Day9.scala" target="_blank" rel="noopener noreferrer">Solution</a> by <a href="https://github.com/YannMoisan" target="_blank" rel="noopener noreferrer">Yann Moisan</a></li><li><a href="https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task09/src/main/scala" target="_blank" rel="noopener noreferrer">Solution</a> by <a href="https://github.com/GrigoriiBerezin" target="_blank" rel="noopener noreferrer">g.berezin</a></li><li><a href="https://github.com/marconilanna/advent-of-code/blob/master/2023/Day09.scala" target="_blank" rel="noopener noreferrer">Solution</a> by <a href="https://github.com/marconilanna" target="_blank" rel="noopener noreferrer">Marconi Lanna</a></li><li><a href="https://github.com/joeledwards/advent-of-code/blob/master/2023/src/main/scala/com/buzuli/advent/days/day9.scala" target="_blank" rel="noopener noreferrer">Solution</a> by <a href="https://github.com/joeledwards" target="_blank" rel="noopener noreferrer">Joel Edwards</a></li><li><a href="https://github.com/AvaPL/Advent-of-Code-2023/tree/main/src/main/scala/day9" target="_blank" rel="noopener noreferrer">Solution</a> by <a href="https://github.com/AvaPL" target="_blank" rel="noopener noreferrer">Paweł Cembaluk</a></li></ul><p>Share your solution to the Scala community by editing this page. | ||
You can even write the whole article! <a href="https://github.com/scalacenter/scala-advent-of-code/discussions/424" target="_blank" rel="noopener noreferrer">See here for the expected format</a></p></div><footer class="theme-doc-footer docusaurus-mt-lg"><div class="theme-doc-footer-edit-meta-row row"><div class="col"><a href="https://github.com/scalacenter/scala-advent-of-code/edit/website/docs/2023/puzzles/day09.md" target="_blank" rel="noreferrer noopener" class="theme-edit-this-page"><svg fill="currentColor" height="20" width="20" viewBox="0 0 40 40" class="iconEdit_Z9Sw" aria-hidden="true"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col lastUpdated_vwxv"></div></div></footer></article><nav class="pagination-nav docusaurus-mt-lg" aria-label="Docs pages navigation"><a class="pagination-nav__link pagination-nav__link--prev" href="/scala-advent-of-code/2023/puzzles/day08"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">Day 8: Haunted Wasteland</div></a><a class="pagination-nav__link pagination-nav__link--next" href="/scala-advent-of-code/2023/puzzles/day10"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Day 10: Pipe Maze</div></a></nav></div></div><div class="col col--3"><div class="tableOfContents_bqdL thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#puzzle-description" class="table-of-contents__link toc-highlight">Puzzle description</a></li><li><a href="#background" class="table-of-contents__link toc-highlight">Background</a><ul><li><a href="#core-logic" class="table-of-contents__link toc-highlight">Core logic</a></li><li><a href="#parsing" class="table-of-contents__link toc-highlight">Parsing</a></li><li><a href="#part-1" class="table-of-contents__link toc-highlight">Part 1</a></li><li><a href="#part-2" class="table-of-contents__link toc-highlight">Part 2</a></li></ul></li><li><a href="#solutions-from-the-community" class="table-of-contents__link toc-highlight">Solutions from the community</a></li></ul></div></div></div></div></main></div></div><footer class="footer"><div class="container container-fluid"><div class="row footer__links"><div class="col footer__col"><div class="footer__title">Content</div><ul class="footer__items clean-list"><li class="footer__item"><a class="footer__link-item" href="/scala-advent-of-code/introduction">Introduction</a></li><li class="footer__item"><a class="footer__link-item" href="/scala-advent-of-code/setup">Setup</a></li><li class="footer__item"><a class="footer__link-item" href="/scala-advent-of-code/2023/puzzles/day01">Puzzles 2023</a></li><li class="footer__item"><a class="footer__link-item" href="/scala-advent-of-code/2022/puzzles/day01">Puzzles 2022</a></li><li class="footer__item"><a class="footer__link-item" href="/scala-advent-of-code/puzzles/day1">Puzzles 2021</a></li></ul></div><div class="col footer__col"><div class="footer__title">Community</div><ul class="footer__items clean-list"><li class="footer__item"><a href="https://discord.com/channels/632150470000902164/913451015246868530" target="_blank" rel="noopener noreferrer" class="footer__link-item">Discord<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li><li class="footer__item"><a href="https://twitter.com/scala_lang" target="_blank" rel="noopener noreferrer" class="footer__link-item">Twitter<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li></ul></div><div class="col footer__col"><div class="footer__title">More</div><ul class="footer__items clean-list"><li class="footer__item"><a href="https://scala.epfl.ch/" target="_blank" rel="noopener noreferrer" class="footer__link-item">Scala Center<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li><li class="footer__item"><a href="https://github.com/scalacenter" target="_blank" rel="noopener noreferrer" class="footer__link-item">GitHub<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li></ul></div></div><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2024 Scala Center, Built with Docusaurus.</div></div></div></footer></div> | ||
<script src="/scala-advent-of-code/assets/js/runtime~main.9d085ce3.js"></script> | ||
<script src="/scala-advent-of-code/assets/js/runtime~main.c59d6dd7.js"></script> | ||
<script src="/scala-advent-of-code/assets/js/main.52f1de22.js"></script> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.