# Advent of Code

Advent of Code is an Advent calendar of small programming puzzles for a range of skill levels that can be solved in any programming language.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Recap of Advent of Code 2025

DevFeed: [Recap of Advent of Code 2025](<https://devfeed.tech/articles/recap-of-advent-of-code-2025-43557.md>)

Original publisher: [Read original article](<https://www.scala-lang.org/blog/2026/02/12/advent-of-code-recap.html>)

Published: 2026-02-11T23:00:00Z

Content type: article

Language: en

Sources: [The Scala Programming Language](<https://devfeed.tech/sources/the-scala-programming-language.md>)

Topics: [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Scala](<https://devfeed.tech/topics/scala.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [coding-community](<https://devfeed.tech/topics/coding-community.md>), [Discord](<https://devfeed.tech/topics/discord.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [code](<https://devfeed.tech/tags/code.md>), [community](<https://devfeed.tech/tags/community.md>), [discord](<https://devfeed.tech/tags/discord.md>), [explainer](<https://devfeed.tech/tags/explainer.md>), [programming](<https://devfeed.tech/tags/programming.md>), [recap](<https://devfeed.tech/tags/recap.md>), [scala](<https://devfeed.tech/tags/scala.md>), [solutions](<https://devfeed.tech/tags/solutions.md>)

### AI overview

A recap of the Scala community's participation in Advent of Code 2025, covering Discord engagement, 106 submitted solutions, newcomer support, and a complete set of community-written solution explainers.

### Source excerpt

Advent of Code, started by Eric Wastl, is an annual event providing daily programming puzzles between December 1st and December 12th. Let's see how the Scala community participated in Advent of Code 2025. We were pleased by the strong engagement on both the Scala Discord and on our solutions website. Why we do this At the Scala Center, we love writing code in Scala, and we hope you do too. One of our core priorities is to communicate excitement about Scala, which motivates us to participate in the Advent of Code and share experiences solving problems with Scala with the wider programming community. Another key priority is to improve the onboarding experience for newcomers. Part of that experience comes from the first impressions someone has reading Scala code. We hope that through hosting articles on our solutions website, newcomers can see that programming in Scala is an elegant way to solve problems. Engagement from the community Discord channel This year, there was lively conversation (with spoilers duly grayed out, of course!) in the #advent-of-code channel on the Scala Discord server. Thank you to everyone who shared their code and/or helped each other come up with the best solutions. We especially thank those who offered friendly help to Scala newcomers. Community solutions 106 solutions were submitted to the website this year, including some from first-time contributors. We give a special shout-out again this year to Paweł Cembaluk, who was the only participant to submit a solution for all 12 days. Explainer articles As usual, we reached out to the community to help write the daily articles that show well-coded, well-explained solutions. The community organized a posting schedule which led to a full set of 12 complete articles. Thank you to all the authors who contributed. Each article has the author's name at the top. The articles are on our solutions website. Summary If you read this far, thank you again everyone for contributing to Scala and participating

## Results from the Advent of FPGA Challenge

DevFeed: [Results from the Advent of FPGA Challenge](<https://devfeed.tech/articles/results-from-the-advent-of-fpga-challenge-20148.md>)

Original publisher: [Read original article](<https://blog.janestreet.com/advent-of-fpga-challenge-2025-results/>)

Author: Anish Singhani

Published: 2026-02-11T00:00:00Z

Content type: news

Language: en

Sources: [Jane Street](<https://devfeed.tech/sources/jane-street.md>)

Topics: [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>)

Tags: [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [challenge](<https://devfeed.tech/tags/challenge.md>), [community](<https://devfeed.tech/tags/community.md>), [competition](<https://devfeed.tech/tags/competition.md>), [fpga](<https://devfeed.tech/tags/fpga.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [results](<https://devfeed.tech/tags/results.md>)

### AI overview

The Advent of FPGA Challenge drew 213 submissions from 46 countries; 59% of participants were students and 32% industry professionals. Hardcaml was tried in at least one problem by 151 submissions, alongside established HDLs and a broad range of other languages. Days 1 and 3 often used greedy state-machine approaches, while Days 4 and 7 suited shift-register techniques; graph problems on Days 8 and 11 required clever hardware translations. Judges valued detailed, reusable write-ups and ambitious solutions, such as demonstrating results on hardware or using unusual backends. The excerpt begins describing retired Canadian engineer Eric Pearson, who solved both parts of all 12 days in SystemVerilog across ASIC, Altera, and Xilinx flows, but cuts off before giving further details.

### Source excerpt

At the end of last year, we decided to try something new: a challenge that would run alongside Advent of Code, where we asked the community to show us how they could design hardware to solve the same problems. We had no idea what level of participation to expect, but we received a huge number of submissions, many of which were incredibly creative!

## Solving the "Impossible" in ClickHouse: Advent of Code 2025

DevFeed: [Solving the "Impossible" in ClickHouse: Advent of Code 2025](<https://devfeed.tech/articles/solving-the-impossible-in-clickhouse-advent-of-code-2025-5061.md>)

Original publisher: [Read original article](<https://clickhouse.com/blog/clickhouse-advent-of-code-2025>)

Author: Zach Naimon

Published: 2025-12-31T00:00:00Z

Content type: article

Language: en

Sources: [ClickHouse Blog](<https://devfeed.tech/sources/clickhouse-blog.md>)

Topics: [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [C++](<https://devfeed.tech/topics/c-plus-plus.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [Bash](<https://devfeed.tech/topics/bash.md>)

Tags: [algorithms](<https://devfeed.tech/tags/algorithms.md>), [ascii](<https://devfeed.tech/tags/ascii.md>), [clickhouse](<https://devfeed.tech/tags/clickhouse.md>), [database](<https://devfeed.tech/tags/database.md>), [sql](<https://devfeed.tech/tags/sql.md>)

### AI overview

The article describes solving Advent of Code 2025 puzzles with a single pure ClickHouse SQL query. It outlines constraints including raw-input parsing and no UDFs or intermediate tables.

### Source excerpt

At ClickHouse, we don't like the word "impossible." We believe that with the right tools, everything is a data problem. To prove it, we decided to complete the 2025 Advent of Code unconventionally: using pure ClickHouse SQL.

## GitButler Joins Advent of Code 2025 with a Branching-Centric Workflow

DevFeed: [GitButler Joins Advent of Code 2025 with a Branching-Centric Workflow](<https://devfeed.tech/articles/advent-of-code-51290.md>)

Original publisher: [Read original article](<https://blog.gitbutler.com/advent-of-code-2025>)

Author: noreply@gitbutler.com (PJ Hagerty)

Published: 2025-11-26T01:00:00Z

Content type: article

Language: en

Sources: [Butler's Log](<https://devfeed.tech/sources/butler-s-log.md>)

Topics: [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Git](<https://devfeed.tech/topics/git.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [Data structures](<https://devfeed.tech/topics/data-structures.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [algorithms-and-data-structures](<https://devfeed.tech/tags/algorithms-and-data-structures.md>), [coding](<https://devfeed.tech/tags/coding.md>), [community](<https://devfeed.tech/tags/community.md>), [developer](<https://devfeed.tech/tags/developer.md>), [developer-tools](<https://devfeed.tech/tags/developer-tools.md>), [git](<https://devfeed.tech/tags/git.md>), [git-advent-of-code-gitbutler-community](<https://devfeed.tech/tags/git-advent-of-code-gitbutler-community.md>), [gitbutler](<https://devfeed.tech/tags/gitbutler.md>), [go](<https://devfeed.tech/tags/go.md>), [programming](<https://devfeed.tech/tags/programming.md>), [puzzles](<https://devfeed.tech/tags/puzzles.md>), [python](<https://devfeed.tech/tags/python.md>), [refactor](<https://devfeed.tech/tags/refactor.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [rust](<https://devfeed.tech/tags/rust.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [solutions](<https://devfeed.tech/tags/solutions.md>), [technology](<https://devfeed.tech/tags/technology.md>), [version-control](<https://devfeed.tech/tags/version-control.md>)

### AI overview

GitButler announces its participation in Advent of Code 2025, with employees solving the event's daily programming puzzles and sharing their solutions. The article presents GitButler's workspace-first, branching-centric workflow as a way to experiment, switch approaches, and manage code while solving the challenges.

### Source excerpt

GitButler is excited to officially participate in this year's Advent of Code! Join our team as we tackle 25 days of clever programming puzzles and showcase how GitButler makes solving daily challenges smoother.

## Advent of FPGA -- A Jane Street Challenge

DevFeed: [Advent of FPGA -- A Jane Street Challenge](<https://devfeed.tech/articles/advent-of-fpga-a-jane-street-challenge-20149.md>)

Original publisher: [Read original article](<https://blog.janestreet.com/advent-of-fpga-challenge-2025/>)

Author: Anish Singhani

Published: 2025-11-24T00:00:00Z

Content type: release

Language: en

Sources: [Jane Street](<https://devfeed.tech/sources/jane-street.md>)

Topics: [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [challenge](<https://devfeed.tech/tags/challenge.md>), [fpga](<https://devfeed.tech/tags/fpga.md>), [hdl](<https://devfeed.tech/tags/hdl.md>), [open-source-communities](<https://devfeed.tech/tags/open-source-communities.md>)

### AI overview

The 2025 Advent of FPGA Challenge invited participants to implement at least one Advent of Code 2025 puzzle as synthesizable RTL with realistic I/O. Any RTL language is accepted, including Verilog, VHDL, Chisel, Amaranth, and Filament; High Level Synthesis languages are excluded. Designs need not be synthesized or run on an FPGA. Submissions, due January 16, 2026, must include open-source code, a testbench, and a README or document describing the approach and how to run it. Entries must be original, and participants should be able to explain their designs. Hardcaml is encouraged: completing a puzzle in it earns a T-shirt. The Jane Street hardware team will select three inventive contributions for a Zynq UltraScale+ Kria KV260 FPGA development kit and swag. The excerpt's update reports over 200 submissions and says selected favorites were featured in a results post.

### Source excerpt

Update: We got over 200 submissions to this challenge, spanning a wide variety of HDL languages and hardware platforms! We featured our favorite submissions in the results blog post, check it out here

## Advent of Hardcaml

DevFeed: [Advent of Hardcaml](<https://devfeed.tech/articles/advent-of-hardcaml-20150.md>)

Original publisher: [Read original article](<https://blog.janestreet.com/advent-of-hardcaml-2024/>)

Author: Anish Singhani

Published: 2025-03-22T00:00:00Z

Content type: article

Language: en

Sources: [Jane Street](<https://devfeed.tech/sources/jane-street.md>)

Topics: [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [challenge](<https://devfeed.tech/tags/challenge.md>), [circuits](<https://devfeed.tech/tags/circuits.md>), [dynamic-programming](<https://devfeed.tech/tags/dynamic-programming.md>), [embedded](<https://devfeed.tech/tags/embedded.md>), [fpga](<https://devfeed.tech/tags/fpga.md>), [hdl](<https://devfeed.tech/tags/hdl.md>), [implement](<https://devfeed.tech/tags/implement.md>), [languages](<https://devfeed.tech/tags/languages.md>), [metaprogramming](<https://devfeed.tech/tags/metaprogramming.md>), [ocaml](<https://devfeed.tech/tags/ocaml.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [platforms](<https://devfeed.tech/tags/platforms.md>), [programming](<https://devfeed.tech/tags/programming.md>), [project](<https://devfeed.tech/tags/project.md>), [puzzles](<https://devfeed.tech/tags/puzzles.md>), [recursion](<https://devfeed.tech/tags/recursion.md>), [solutions](<https://devfeed.tech/tags/solutions.md>)

### AI overview

The article describes solving 2024 Advent of Code puzzles on a relatively small FPGA (84K LUTs and 4 Mbits of RAM), which required adapting algorithms such as graph traversal, sorting, dynamic programming, and recursion to hardware constraints. The project uses Hardcaml, an open-source hardware description language embedded in OCaml, to simulate designs and compile them to RTL within one language. Its type system and metaprogramming support concise, reusable circuit generation for unrolling sequential operations into parallel hardware, while assigning semantic types to wires to reduce type-confusion bugs. An update reports that a 2025 Advent of FPGA Challenge drew over 200 submissions across HDL languages and hardware platforms; this excerpt does not include the results.

### Source excerpt

Update: For the 2025 Advent of Code, we ran an Advent of FPGA Challenge where we invited the community to implement their own synthesizable solutions to this year's puzzles! We got over 200 submissions spanning a wide variety of HDL languages and hardware platforms, check out our favorite solutions in the results blog post

## Advent of Code 2024 in pure SQL

DevFeed: [Advent of Code 2024 in pure SQL](<https://devfeed.tech/articles/advent-of-code-2024-in-pure-sql-25086.md>)

Original publisher: [Read original article](<https://databasearchitects.blogspot.com/2024/12/advent-of-code-2024-in-pure-sql.html>)

Author: Thomas Neumann (noreply@blogger.com)

Published: 2024-12-27T16:57:00Z

Content type: article

Language: en

Sources: [Database Architects](<https://devfeed.tech/sources/database-architects.md>)

Topics: [SQL](<https://devfeed.tech/topics/sql.md>), [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Graphs](<https://devfeed.tech/topics/graphs.md>)

Tags: [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [duckdb](<https://devfeed.tech/tags/duckdb.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [recursive-sql](<https://devfeed.tech/tags/recursive-sql.md>), [sql](<https://devfeed.tech/tags/sql.md>)

### AI overview

The author describes solving every Advent of Code 2024 problem in pure SQL. Small-scale traversals were practical and sometimes pleasant, while larger recursive queries could be inefficient and require more than 200 GB of memory. The experience suggests that recursive SQL would benefit from mechanisms for updating state and supporting more complex control flow.

### Source excerpt

On a whim I decided to do this years advent of code in pure SQL. That was an interesting experience that I can recommend to everybody because it forces you to think differently about the problems. And I can report that it was possible to solve every problem in pure SQL. In many cases SQL was actually surprisingly pleasant to use. The full solution for day 11 (including the puzzle input) is shown below: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30with recursive aoc10_input(i) as (select ' 89010123 78121874 87430965 96549874 45678903 32019012 01329801 10456732 '), lines(y,line) as ( select 0, substr(i,1,position(E'\n' in i)-1), substr(i,position(E'\n' in i)+1) from aoc10_input union all select y+1,substr(r,1,position(E'\n' in r)-1), substr(r,position(E'\n' in r)+1) from lines l(y,l,r) where position(E'\n' in r)>0 ), field(x,y,v) as ( select x,y,ascii(substr(line,x::integer,1))-48 from (select * from lines l where line<>'') s, lateral generate_series(1,length(line)) g(x) ), paths(x,y,v,sx,sy) as ( select x,y,9,x,y from field where v = 9 union all select f.x,f.y,f.v,p.sx,p.sy from field f, paths p where f.v=p.v-1 and ((f.x=p.x and abs(f.y-p.y)=1) or (f.y=p.y and abs(f.x-p.x)=1)) and p.v>0), results as (select * from paths where v=0), part1 as (select distinct * from results) select (select count(*) from part1) as part1, (select count(*) from results) as part2 Parsing the input is a bit painful in SQL, but it is not too bad. Lines 1-10 are simply the puzzle input, lines 11-17 split the input into individual lines, and lines 18-21 construct a 2D array from the input. The algorithm itself is pretty short, lines 22-27 perform a recursive traversal of the field, and lines 28-39 extract the puzzle answer from the traversal results. For this kind of small scale traversals SQL works just fine. Other days were more painful. Day 16 for example does conceptually a very similar traversal of a field, and it computes the minimal traversal distance

## Advent of Svelte

DevFeed: [Advent of Svelte](<https://devfeed.tech/articles/advent-of-svelte-3027.md>)

Original publisher: [Read original article](<https://svelte.dev/blog/advent-of-svelte>)

Author: The Svelte team

Published: 2024-12-01T00:00:00Z

Content type: article

Language: en

Sources: [Svelte](<https://devfeed.tech/sources/svelte-blog.md>)

Topics: [Svelte](<https://devfeed.tech/topics/svelte.md>), [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Code](<https://devfeed.tech/topics/code.md>), [reactive](<https://devfeed.tech/topics/reactive.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [browser](<https://devfeed.tech/tags/browser.md>), [code](<https://devfeed.tech/tags/code.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [new-feature](<https://devfeed.tech/tags/new-feature.md>), [reactive](<https://devfeed.tech/tags/reactive.md>), [svelte](<https://devfeed.tech/tags/svelte.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

Svelte Society's Advent of Svelte presents a daily series of Svelte, SvelteKit, and website improvements released through Christmas. The documented updates include error boundaries, simpler each blocks, exported snippets, configurable form default values, reactive media-query helpers, modern Spring and Tween state alternatives, an accessible hierarchical tutorial menu, binding transformations, documentation links for warnings and errors, and awaited asynchronous SvelteKit startup setup.

### Source excerpt

Last December, Svelte Society presented an advent calendar's worth of festive Svelte-themed code challenges. This year, we're turning it around: you get to relax while we take on a challenge. We've set ourselves a goal of releasing one thing a day from here until Christmas, whether it's a new feature in Svelte or SvelteKit or an improvement to the website. Follow @svelte.dev and @sveltesociety.dev and check back every day to see what we've been cooking up. Day 1: error boundaries This is a long-awaited and much-requested feature, that allows you to isolate and recover from errors that occur during rendering. docs tutorial Day 2: each without as If you just want to render something in an {#each ...} block n times, and don't care about the value, you can now omit the as part. docs demo Day 3: exported snippets You can now export snippets from a component's <script module>, for use in other components, as long as those snippets don't reference anything belonging to the component instance. docs demo Day 4: form control default values When you reset a form, the value of each <input> element reverts to its defaultValue. This is normally the empty string, but you can now control it directly in your template. docs demo Day 5: MediaQuery, prefersReducedMotion and createSubscriber It's a three-in-one kind of day. new MediaQuery(...) gives you an object with a reactive current property that's true when the media query matches. prefersReducedMotion is an instance of MediaQuery that matches if the user has expressed a preference for reduced motion, helping you build accessible apps. Under the hood, both are using the createSubscriber mechanism, which gives you an easy way to set up event listeners when a value is read inside an effect. createSubscriber docs MediaQuery docs prefersReducedMotion docs demo Day 6: Spring and Tween We now have modern state-based alternatives to the spring and tweened stores of old. Smooth! Tween tutorial Spring tutorial docs demo Day 7: better tutori

## Advent of Code in C++ Template Metaprogramming

DevFeed: [Advent of Code in C++ Template Metaprogramming](<https://devfeed.tech/articles/advent-of-code-in-c-template-metaprogramming-21942.md>)

Original publisher: [Read original article](<https://blog.nelhage.com/post/advent-of-templates/>)

Author: Nelson Elhage

Published: 2023-12-08T15:30:00Z

Content type: tutorial

Language: en

Sources: [Nelson Elhage](<https://devfeed.tech/sources/nelson-elhage.md>)

Topics: [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [C++](<https://devfeed.tech/topics/c-plus-plus.md>), [Code](<https://devfeed.tech/topics/code.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [polyfill](<https://devfeed.tech/topics/polyfill.md>)

Tags: [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [code](<https://devfeed.tech/tags/code.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [polyfill](<https://devfeed.tech/tags/polyfill.md>), [writeup](<https://devfeed.tech/tags/writeup.md>)

### AI overview

An annotated walkthrough of solving the first Advent of Code problem using purely compile-time C++ template metaprogramming. It covers compile-time input handling, folds, helper types, and state tracking to calculate calibration values.

### Source excerpt

This December, the imp of the perverse struck me, and I decided to see how many days of Advent of Code I could do purely in compile-time C++ metaprogramming. As of this writing, I've done two days, and I'm not sure I'll make it any further. However, that's one more day than I planned to do as of yesterday, which is in turn further than I thought I'd make it after my first attempt.

## GitButler Sponsors Advent of Code and Announces a New Client Alpha Release

DevFeed: [GitButler Sponsors Advent of Code and Announces a New Client Alpha Release](<https://devfeed.tech/articles/advent-of-gitbutler-code-51291.md>)

Original publisher: [Read original article](<https://blog.gitbutler.com/advent-of-gitbutler-code>)

Author: noreply@gitbutler.com (Scott Chacon)

Published: 2023-11-30T20:18:22Z

Content type: release

Language: en

Sources: [Butler's Log](<https://devfeed.tech/sources/butler-s-log.md>)

Topics: [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [version-control](<https://devfeed.tech/topics/version-control.md>), [Git](<https://devfeed.tech/topics/git.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Software](<https://devfeed.tech/topics/software.md>)

Tags: [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [coding](<https://devfeed.tech/tags/coding.md>), [company](<https://devfeed.tech/tags/company.md>), [company-features](<https://devfeed.tech/tags/company-features.md>), [developer-tools](<https://devfeed.tech/tags/developer-tools.md>), [features](<https://devfeed.tech/tags/features.md>), [git](<https://devfeed.tech/tags/git.md>), [gitbutler](<https://devfeed.tech/tags/gitbutler.md>), [programming](<https://devfeed.tech/tags/programming.md>), [release](<https://devfeed.tech/tags/release.md>), [software](<https://devfeed.tech/tags/software.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [technology](<https://devfeed.tech/tags/technology.md>), [version-control](<https://devfeed.tech/tags/version-control.md>)

### AI overview

GitButler announces sponsorship of Advent of Code and introduces a new alpha release of its client, including a refreshed interface and a demo of virtual branches.

### Source excerpt

This holiday season, GitButler is sponsoring the Advent of Code and our first present is a new release! Join us in solving coding puzzles every day with our new client alpha!

## Using Fleet 1.19's AI Assistant to Convert Kotlin Between Imperative and Functional Styles

DevFeed: [Using Fleet 1.19's AI Assistant to Convert Kotlin Between Imperative and Functional Styles](<https://devfeed.tech/articles/the-imitation-tortoise-s-song-a-fleety-conversion-from-imperative-to-functional-will-you-join-the-dance-32082.md>)

Original publisher: [Read original article](<https://www.maiatoday.net/p/the-imitation-tortoises-song-a-fleety-conversion-from-imperative-to-functional-will-you-join-the-dance/>)

Published: 2023-06-10T13:12:44Z

Content type: article

Language: en

Sources: [Maiatoday](<https://devfeed.tech/sources/maiatoday.md>)

Topics: [code style](<https://devfeed.tech/topics/code-style.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Functional programming](<https://devfeed.tech/topics/functional-programming.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Code](<https://devfeed.tech/topics/code.md>), [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>)

Tags: [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-assistant](<https://devfeed.tech/tags/ai-assistant.md>), [code](<https://devfeed.tech/tags/code.md>), [coding-style](<https://devfeed.tech/tags/coding-style.md>), [doggerel](<https://devfeed.tech/tags/doggerel.md>), [fleet](<https://devfeed.tech/tags/fleet.md>), [functional](<https://devfeed.tech/tags/functional.md>), [functional-programming](<https://devfeed.tech/tags/functional-programming.md>), [imperative](<https://devfeed.tech/tags/imperative.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [word-games](<https://devfeed.tech/tags/word-games.md>)

### AI overview

The article experiments with Fleet 1.19's integrated AI assistant by converting Kotlin code for the Advent of Code 2022 Day 10 puzzle between imperative and functional styles, comparing the results, and generating poetry.

### Source excerpt

Once upon a time I admit. I have a penchant for word games and weird segues. So I will tell you what this post is about off the bat. You can skip to the code, I won't be offended. Fleet 1.19 was released this week with an integrated AI assistant. I took it for a spin and used it to convert Kotlin code from imperative style to functional and back again. I used some Kotlin code, which solves the Advent of Code 2022 Day 10 puzzle. I had written the solution in two styles and I had the AI assistant do the same conversion and compared the code. And then I played around and generated some poetry. Follow links at your peril, there are rabbit holes, it might make you late or change the size of your free time. Segue the first of many Oh you are still here! You didn't jump to the code starts here section? Why am I doing this? A long time ago, I read a lot of Lewis Caroll, Alice in Wonderland. In one scene Alice talks to the Mock Turtle. He sings a song about sea creatures dancing. When the first language translators appeared on the scene, Altavisa babelfish or perhaps it was the early Google Translate, I converted passages from Alice in Wonderland to French and then back again to see what the machines could do. The Mock Turtle was transformed into an Imitation Tortoise. In this way the reference to the original mock turtle soup was lost in translation. In a roundabout way I was wondering what would be uncovered or lost if I used the AI assistant for some translations in coding style. Couplets of doggerel My trusty and non emotional assistant had no opinion on Lewis Caroll but it made this for me. A definition of functional programming style in rhyming couplets: Functional programming's way, treats functions as the play. Immutable states they use, side effects they refuse. Declarative code is their choice, with functions, they rejoice. Nested functions map, filter, reduce, a clean, elegant code they produce. Compare this with the imperative version: Imperative code, step by st

## 26 programming languages in 25 days, Part 2: Reflections on language design

DevFeed: [26 programming languages in 25 days, Part 2: Reflections on language design](<https://devfeed.tech/articles/26-programming-languages-in-25-days-part-2-reflections-on-language-design-35233.md>)

Original publisher: [Read original article](<http://matt.might.net/articles/26-languages-part2/>)

Published: 2022-12-31T19:36:56Z

Content type: opinion

Language: en

Sources: [Matt Might](<https://devfeed.tech/sources/matt-might.md>)

Topics: [Programming Languages / Compilers](<https://devfeed.tech/topics/programming-languages-compilers.md>), [Functional programming](<https://devfeed.tech/topics/functional-programming.md>), [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Racket](<https://devfeed.tech/topics/racket.md>), [domain-specific language](<https://devfeed.tech/topics/domain-specific-language.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Common Lisp](<https://devfeed.tech/topics/common-lisp.md>), [Haskell](<https://devfeed.tech/topics/haskell.md>), [Erlang](<https://devfeed.tech/topics/erlang.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Python](<https://devfeed.tech/topics/python.md>)

Tags: [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [awk](<https://devfeed.tech/tags/awk.md>), [bash](<https://devfeed.tech/tags/bash.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [code](<https://devfeed.tech/tags/code.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [data-structure](<https://devfeed.tech/tags/data-structure.md>), [data-structures](<https://devfeed.tech/tags/data-structures.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [design](<https://devfeed.tech/tags/design.md>), [functional](<https://devfeed.tech/tags/functional.md>), [language](<https://devfeed.tech/tags/language.md>), [languages](<https://devfeed.tech/tags/languages.md>), [performance](<https://devfeed.tech/tags/performance.md>), [programming](<https://devfeed.tech/tags/programming.md>), [programming-languages](<https://devfeed.tech/tags/programming-languages.md>), [puzzles](<https://devfeed.tech/tags/puzzles.md>)

### AI overview

Across 26 languages used for Advent of Code, the author found that language choice mattered less than algorithms and data structures, while functional design often made puzzle extensions easier. Syntax mattered little personally, though indentation sensitivity changed the author's preference. Neither static nor dynamic typing was considered universally superior: stricter types helped with complex nested structures and debugging, while dynamic languages sped up work on simpler data, leading the author to favor a gradual path like Racket and Typed Racket. The author prefers functional programming but would retain mutability, favor strict evaluation with laziness available as needed, and start language implementation with an interpreter while avoiding features such as `eval` that complicate compilation. Domain-specific languages worked well in their intended domains, prompting a preference for embedded DSL support. Racket with Typed Racket came closest to the author's preferred design. These are reflections from a short puzzle-solving experience, not a general comparison of all languages.

### Source excerpt

I recently wrote about completing Advent of Code 2022 using a different programming language (or two) every day for 25 days. That note focused on the strategy, tactics and logistics involved in using 26 languages in 25 days without saying much about the languages or the experience itself. Using so many languages in such a short span provided insight into tradeoffs in language design. Here are my two high-level reflections from the experience: Good program design in the first part of each puzzle - especially more functional techniques and abstractions - tended to make the second part easier. So, in general, functional languages seemed to have the advantage in the puzzles. Using better algorithms and data structures was more important than having a "faster" programming language. There was never a time where rewriting in another language felt like the right way to get better performance. Read on for more specific reflections on language design. Click here to read the rest of the article

## 26 programming languages in 25 days, Part 1: Strategy, tactics and logistics

DevFeed: [26 programming languages in 25 days, Part 1: Strategy, tactics and logistics](<https://devfeed.tech/articles/26-programming-languages-in-25-days-part-1-strategy-tactics-and-logistics-35232.md>)

Original publisher: [Read original article](<http://matt.might.net/articles/26-languages-part1/>)

Published: 2022-12-27T23:28:42Z

Content type: tutorial

Language: en

Sources: [Matt Might](<https://devfeed.tech/sources/matt-might.md>)

Topics: [Programming](<https://devfeed.tech/topics/programming.md>), [Programming languages & frameworks](<https://devfeed.tech/topics/programming-languages-frameworks.md>), [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [Functional programming](<https://devfeed.tech/topics/functional-programming.md>)

Tags: [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [array](<https://devfeed.tech/tags/array.md>), [arrays](<https://devfeed.tech/tags/arrays.md>), [awk](<https://devfeed.tech/tags/awk.md>), [bash](<https://devfeed.tech/tags/bash.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [experience](<https://devfeed.tech/tags/experience.md>), [language](<https://devfeed.tech/tags/language.md>), [languages](<https://devfeed.tech/tags/languages.md>), [latex](<https://devfeed.tech/tags/latex.md>), [learn](<https://devfeed.tech/tags/learn.md>), [learning](<https://devfeed.tech/tags/learning.md>), [logistics](<https://devfeed.tech/tags/logistics.md>), [programming](<https://devfeed.tech/tags/programming.md>), [programming-language](<https://devfeed.tech/tags/programming-language.md>), [programming-languages](<https://devfeed.tech/tags/programming-languages.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [puzzles](<https://devfeed.tech/tags/puzzles.md>), [strategy](<https://devfeed.tech/tags/strategy.md>)

### AI overview

The author completed Advent of Code's 25 daily puzzles in 26 languages, choosing languages around puzzle difficulty, personal experience, and expressiveness. They found the first 15 days especially suitable for trying unfamiliar languages and would save their strongest choices for later puzzles. To manage setup, they used Homebrew for most installations, vim and make as a shared environment (Visual Studio for C#), and wrote a simple file-printing program in advance to create starter projects. With one to two hours per puzzle, they planned algorithms before coding, chose a suitable language family and then a minimum viable language, and translated the solution before optimizing. They relied on familiar data structures, looked up language quirks such as truth rules and array indexing, and often hard-coded puzzle input first, adding a parser later if time allowed.

### Source excerpt

Since making a sudden leap from computer science to academic medicine about seven years ago, I haven't programmed as much. I love what I do in medicine and biology, and I love helping patients. But, I have missed programming - and programming languages. Then I came across the Advent of Code on Mastodon - a series of daily two-part puzzles for programmers that runs for 25 days. On a whim, I solved the Day 1 puzzle using awk. I solved Day 2 in TeX (which underpins LaTeX) to reboot an old skill. After that, I wondered if I could solve each of the 25 puzzles using a different programming language every day. So, I did. In the end: on 12 days, I had to learn a new programming language from scratch, and then use it to solve that day's puzzle; on 4 days, I used languages where I had very little experience; and on the other 9 days, I used languages I had known well at some point. In the end, I used 26 languages, because I combined two on Day 21 (sed and bc), turning the experience into a rapid-fire "breadth-first search" of programming language space. Learning how to learn a new language became the key meta-learning. If you'd like to try the breadth-first search yourself, I have distilled advice on the strategy, tactics and logistics involved in using a new programming language every day for 25 days. You will end up with an appreciation of the relative strengths and intended domains of different languages. Click here to read the rest of the article

## Saving Christmas with Kotlin

DevFeed: [Saving Christmas with Kotlin](<https://devfeed.tech/articles/saving-christmas-with-kotlin-24739.md>)

Original publisher: [Read original article](<https://medium.com/xorum-io/saving-christmas-with-kotlin-e3e239b6fe3d?source=rss----92bb7980cc9f---4>)

Author: Yev Kanivets

Published: 2022-01-29T12:24:13Z

Content type: article

Language: en

Sources: [xorum.io](<https://devfeed.tech/sources/xorum-io-medium.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [now-in-android](<https://devfeed.tech/topics/now-in-android.md>)

Tags: [2021](<https://devfeed.tech/tags/2021.md>), [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [android](<https://devfeed.tech/tags/android.md>), [backend](<https://devfeed.tech/tags/backend.md>), [christmas](<https://devfeed.tech/tags/christmas.md>), [competitive-programming](<https://devfeed.tech/tags/competitive-programming.md>), [data-science](<https://devfeed.tech/tags/data-science.md>), [data-structures](<https://devfeed.tech/tags/data-structures.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [java](<https://devfeed.tech/tags/java.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [mobile-developer](<https://devfeed.tech/tags/mobile-developer.md>)

### AI overview

The author completed all 50 Advent of Code 2021 challenges in Kotlin over 25 days, with two challenges released daily at 7 a.m. UTC+2. Most took one to two hours, and the author published a four-part series of ideas and solutions. Framed as a Christmas rescue story, the excerpt introduces Kotlin as the author's daily language and says its compatibility with Java gives it potential for competitive programming. The supplied text ends as the author begins explaining that potential, so it does not establish specific techniques or comparisons.

### Source excerpt

It's been a month since I've saved a Christmas. Now, I feel it's time to tell you exactly how I did it. I wasn't alone, though. My faithful companion was crucial to the success of my mission. Yes, Kotlin, I'm talking about you. But let's return to the day when it all started: I was minding my own business on a ship at sea when the overboard alarm goes off! I rushed to see if I could help. Apparently, one of the Elves tripped and accidentally sent the sleigh keys flying into the ocean!Before I knew it, I was inside a submarine the Elves kept ready for situations like this. It was covered in Christmas lights (because of course it is), and it even had an experimental antenna that should be able to track the keys if I could boost its signal strength high enough; there was a little meter that indicated the antenna's signal strength by displaying 0-50 stars.My instincts told me that in order to save Christmas, I needed to get all fifty stars by December 25th. It turns out that 200K+ other people happened to get into a similar situation. You can still see the complete log of our adventures on this site. Some people call it the "Advent of Code" and say it happens yearly. My way down It took me 25 days and 50 challenges (yeah, two challenges per day) to get those sleigh keys and save the Christmas. Every day at 7 a.m. (UTC+2), we reached a new milestone that unlocked two more challenges to solve. Most of them took from one to two hours to get done. Thank God there was a pretty good Internet connection in my submarine (I could even work remotely and didn't need to take a vacation for such a noble task), so I still had plenty of time to share my ideas and solutions: Ideas and Solutions for Advent of Code 2021 in Kotlin -- Part 1/4 Ideas and Solutions for Advent of Code 2021 in Kotlin -- Part 2/4 Ideas and Solutions for Advent of Code 2021 in Kotlin -- Part 3/4 Ideas and Solutions for Advent of Code 2021 in Kotlin -- Part 4/4 Spending 25 days locked in a submarine and solving chall

## Ideas and Solutions for Advent of Code 2021 in Kotlin -- Part 4/4

DevFeed: [Ideas and Solutions for Advent of Code 2021 in Kotlin -- Part 4/4](<https://devfeed.tech/articles/ideas-and-solutions-for-advent-of-code-2021-in-kotlin-part-4-4-24736.md>)

Original publisher: [Read original article](<https://medium.com/xorum-io/ideas-and-solutions-for-advent-of-code-2021-in-kotlin-part-4-4-75c207692bdb?source=rss----92bb7980cc9f---4>)

Author: Yev Kanivets

Published: 2021-12-26T14:39:41Z

Content type: tutorial

Language: en

Sources: [xorum.io](<https://devfeed.tech/sources/xorum-io-medium.md>)

Topics: [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>)

Tags: [2021](<https://devfeed.tech/tags/2021.md>), [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [competitive-programming](<https://devfeed.tech/tags/competitive-programming.md>), [data-structures](<https://devfeed.tech/tags/data-structures.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [solutions](<https://devfeed.tech/tags/solutions.md>)

### AI overview

For Day 19, the author matches 3D scanner point sets by trying all 48 rotations in 90-degree increments, aligning each candidate point pair, and checking whether more than 12 points overlap. For Day 20, each pixel is updated from itself and its eight neighbors using the enhancement guidance. Because the input is treated as infinite but the picture grows by one pixel per step, the author pads the image by the number of steps on every side. The excerpt begins to describe a complication involving uniform black or white neighborhoods, but cuts off before explaining it.

### Source excerpt

Ideas and Solutions for Advent of Code 2021 in Kotlin -- Part 4/4 The final week of Advent of Code was, obviously, the most challenging one. To be honest I was close to being happy with just a silver star multiple times. But at the end, tenacity made the difference. 50 stars are mine this year 🌟 Ideas and Solutions for tasks 1 to 6 can be found here, for tasks 7 to 12 -- here, for tasks 13 to 18 -- here. Day 19: Beacon Scanner We are provided with several sets of points in 3D space. Those points are rotated differently in each set, so we don't know how X, Y, and Z coordinates are aligned between sets. Our goal is to merge all those sets into a single group by matching points (sub-task one) and find the most significant distance between coordinate origins after they are matched. Here is the complete task. This is an exciting task! I've initially learned about this idea from The Three-Body Problem book, which introduced the concept of locating any star in the Universe by the distances from a few nearest stars -- in our case, "a few" means 12. Think about it as a star fingerprint ;) So to match the sets of points in 3D space, we need: check all combinations of rotations in three dimensions (in our task, the step is 90 degrees, so there are 48 combinations) for the whole set assume that each pair of points from the first set and the second set is an intersection by adjusting all points to that pair check how many adjusted points intersect between the two sets if there are more than 12 intersections, voilá -- the sets are matched The embedded Kotlin's functions like intersect, map, and mapNotNull make the solution, even for such a complex task, elegant. Day 20: Trench Map This image-enhancing task provides us with the initial photo (2D array of black and white pixels), and enhancing guidance (1D array). Enhancing happens in steps, where for each pixel, we found its enhanced value as a result of a combination of itself + all eight adjacent pixels. Here is the complete task. We

## Ideas and Solutions for Advent of Code 2021 in Kotlin -- Part 3/4

DevFeed: [Ideas and Solutions for Advent of Code 2021 in Kotlin -- Part 3/4](<https://devfeed.tech/articles/ideas-and-solutions-for-advent-of-code-2021-in-kotlin-part-3-4-24735.md>)

Original publisher: [Read original article](<https://medium.com/xorum-io/ideas-and-solutions-for-advent-of-code-2021-in-kotlin-part-3-4-dbfd577703cc?source=rss----92bb7980cc9f---4>)

Author: Yev Kanivets

Published: 2021-12-26T14:22:49Z

Content type: tutorial

Language: en

Sources: [xorum.io](<https://devfeed.tech/sources/xorum-io-medium.md>)

Topics: [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [competitive-programming](<https://devfeed.tech/topics/competitive-programming.md>), [Graphs](<https://devfeed.tech/topics/graphs.md>), [Mathematics](<https://devfeed.tech/topics/mathematics.md>)

Tags: [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [array](<https://devfeed.tech/tags/array.md>), [code](<https://devfeed.tech/tags/code.md>), [competitive-programming](<https://devfeed.tech/tags/competitive-programming.md>), [data-structures](<https://devfeed.tech/tags/data-structures.md>), [graph-theory](<https://devfeed.tech/tags/graph-theory.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [memory](<https://devfeed.tech/tags/memory.md>), [pairs](<https://devfeed.tech/tags/pairs.md>), [programming](<https://devfeed.tech/tags/programming.md>), [solutions](<https://devfeed.tech/tags/solutions.md>), [time](<https://devfeed.tech/tags/time.md>)

### AI overview

This article presents high-level ideas and Kotlin solutions for Advent of Code 2021 tasks from days 13 to 15. It discusses folding a 2D array, modeling polymer growth with dynamic programming, and finding a shortest path in a 2D array.

### Source excerpt

Ideas and Solutions for Advent of Code 2021 in Kotlin -- Part 3/4 The third week of Advent of Code requires more time and even some competitive programming knowledge like dynamic programming and graph theory. In this article, I share some high-level ideas and my solutions if you need a hint or a few to get that gold star. Ideas and Solutions for tasks 1 to 6 can be found here, for tasks 7 to 12 -- here. Day 13: Transparent Origami The 2D array contains two types of symbols -- . and #. This array can be folded horizontally and vertically multiple times. When folding # symbols replace . symbols, but not vice versa. Here is the complete task. This is a modeling task, which you can do on the 2D array itself, but the possible range is quite large, so you can hit a memory limit. The smarter solution would be to fold the # symbols (the initial input, actually). Such folding can be done with Kotlin's fold function using the initial value of # symbol positions and mapNotNull, which mirrors X or Y coordinates depending on the fold direction. Here is my solution. Day 14: Extended Polymerization We get the initial string (template) consisting of uppercase letters, which describe the initial state of the polymer. The list of pair insertion rules allows growing the initial polymer step by step exponentially. We need to model this growth during 10 (first sub-task) and 40 (second sub-task) steps. Here is the complete task. The first sub-task can be solved just by modeling, but even 20 steps are too long and require too much memory and time. The (much) better solution is based on dynamic programming. You can easily see that every pair grows independently of others (new elements are always added inside the pair). It means that the solution can be found for each pair separately and then combined. It doesn't speed up things sufficiently though. But makes the solution easier? Yes. Now, let's grow each pair step by step. So at each step, every pair (usually) produces two more pairs, which h

## Ideas and Solutions for Advent of Code 2021 in Kotlin -- Part 2/4

DevFeed: [Ideas and Solutions for Advent of Code 2021 in Kotlin -- Part 2/4](<https://devfeed.tech/articles/ideas-and-solutions-for-advent-of-code-2021-in-kotlin-part-2-4-24734.md>)

Original publisher: [Read original article](<https://medium.com/xorum-io/ideas-and-solutions-for-advent-of-code-2021-in-kotlin-part-2-4-5079d5066653?source=rss----92bb7980cc9f---4>)

Author: Yev Kanivets

Published: 2021-12-18T19:56:15Z

Content type: article

Language: en

Sources: [xorum.io](<https://devfeed.tech/sources/xorum-io-medium.md>)

Topics: [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [computational complexity](<https://devfeed.tech/topics/computational-complexity.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [Combinatorial optimization](<https://devfeed.tech/topics/combinatorial-optimization.md>), [Sequences](<https://devfeed.tech/topics/sequences.md>)

Tags: [2021](<https://devfeed.tech/tags/2021.md>), [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [algorithms-and-data-structures](<https://devfeed.tech/tags/algorithms-and-data-structures.md>), [breadth-first-search](<https://devfeed.tech/tags/breadth-first-search.md>), [competetive-programming](<https://devfeed.tech/tags/competetive-programming.md>), [data-structures](<https://devfeed.tech/tags/data-structures.md>), [depth-first-search](<https://devfeed.tech/tags/depth-first-search.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>)

### AI overview

The excerpt presents key ideas, rather than complete editorials, for six Advent of Code 2021 tasks in Kotlin. Day 7 checks every alignment value between the input minimum and maximum, applying a cost function supplied to the solution. Day 8 identifies digits from segment counts and intersections, progressively decoding the remaining patterns. For Day 9, it locates low points and uses breadth-first or depth-first search to find basins. Day 10 uses a stack to validate bracket sequences and Kotlin's sorting functions to order results. Day 11 processes flashes with breadth-first search, filtering adjacent cells that are out of bounds or already flashed. Day 12 uses recursive depth-first search with the current path and a tolerance parameter: zero for the first task and one for the second, which permits one small cave to be visited twice.

### Source excerpt

Ideas and Solutions for Advent of Code 2021 in Kotlin -- Part 2/4 The second week of Advent of Code introduces us to more difficult tasks, some of which require fundamental knowledge in algorithms and data structures. Do you need an idea or a tiny hint to get that gold star? Here we are, the second six tasks. What's special about this article? I won't be sharing the complete editorial, but the key idea only, so you can still solve the task by yourself. And if you need more guidance, there is a source code linked. Ideas and Solutions for tasks 1 to 6 can be found here. Day 7: The Treachery of Whales We are provided with an array of different values, which we need to align to a single value with the lowest possible cost. The cost function is different for the two sub-tasks. Here is the complete task. The solution is as simple as checking all possible values to align from min value to max value in the original array and choosing one with the lowest cost. The cost function (array of cost of moving value by 0, 1, 2 ... N) can be passed as an argument to your solution. Here is my solution. Day 8: Seven Segment Search Malfunctioning seven-segment digital display sends us some signals, which we need to decode knowing the representation of the full set of digits and which segments are used for each entry. Here is the complete task. The first sub-task requires you to parse only four digits -- 1, 4, 7, 8. All of them are unique in terms of segments used, so guessing them is relatively simple. The second sub-task asks you to guess the other 6 digits. I'm sure there are many different sequences in which you can guess them, but in my case, I've done the following: segments b and d are present in digit 4, but not in digit 1 segment bd is present only in digit 5 between all digits that use 5 segments then we can decode segments c and f by looking on the intersection of digits 1 and 5 using newly discovered segments, we find digits 3, 2, and 6 segment d can be found as an intersection o

## Ideas and Solutions for Advent of Code 2021 in Kotlin -- Part 1/4

DevFeed: [Ideas and Solutions for Advent of Code 2021 in Kotlin -- Part 1/4](<https://devfeed.tech/articles/ideas-and-solutions-for-advent-of-code-2021-in-kotlin-part-1-4-24733.md>)

Original publisher: [Read original article](<https://medium.com/xorum-io/ideas-and-solutions-for-advent-of-code-2021-in-kotlin-part-1-4-9a16d9e3bd57?source=rss----92bb7980cc9f---4>)

Author: Yev Kanivets

Published: 2021-12-13T15:31:55Z

Content type: article

Language: en

Sources: [xorum.io](<https://devfeed.tech/sources/xorum-io-medium.md>)

Topics: [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>)

Tags: [2021](<https://devfeed.tech/tags/2021.md>), [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [competitive-programming](<https://devfeed.tech/tags/competitive-programming.md>), [data-structures](<https://devfeed.tech/tags/data-structures.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [solutions](<https://devfeed.tech/tags/solutions.md>)

### AI overview

The excerpt outlines Kotlin approaches for Advent of Code 2021 Days 1-6. Day 1 counts increases in individual heights and sliding triples by comparing successive values, with `drop` and `foldIndexed` suggested. Day 2 models submarine commands and folds position and depth changes for the first subtask; the second requires following its distinct movement rules. Day 3 uses column-wise bit counts, recursive filtering by popular or least popular bits, and `toInt(radix)` conversion. Day 4 orders Bingo boards by when they win, suggesting `indexOfFirst`, `count`, and `takeUnless`. Day 5 counts segment intersections on a 2D grid by stepping coordinates along each line. For Day 6, direct modeling is presented as suitable for the first subtask, while the larger case uses dynamic programming: calculate one fish's offspring from earlier day counts at intervals of seven days, adjusting for the initial spawn counter. The excerpt gives solution ideas rather than complete editorial details.

### Source excerpt

Ideas and Solutions for Advent of Code 2021 in Kotlin -- Part 1/4 There are so many things to do before Christmas, so I was always wondering how people find extra time to solve a daily programming puzzle of Advent of Code. Well, this year I'm one of those lucky folks with a bunch of spare time. Advent of Code is an annual event of Christmas-oriented programming challenges started December 2015. Every year since then, on the first day of December, a programming puzzle is published every day for twenty-four days. You can solve the puzzle and provide an answer using the language of your choice. Extra reason by JetBrains in the form of the giveaway of some Kotlin care packages has certainly contributed to my motivation. But what's the point of solving tasks without sharing your ideas and solutions with the community ;) So here we are, the first six tasks. What's special about this article? I won't be sharing the complete editorial, but the key idea only, so you can still solve the task by yourself. And if you need more guidance, there is a source code linked. Day 1: Sonar Sweep We are given an array of heights of a seafloor. We need to calculate the number of times heights (sub-task one) and sliding triples of heights (sub-task two) are increasing. Complete task is here. To solve both tasks we need to go from left to right and compare the previous element (or sliding triple) to the current one. That's pretty simple, but challenge yourself to craft the beautiful code. In Kotlin we may consider using drop and foldIndexed functions for this. Here is my solution. Day 2: Dive! The submarine can move in 2D space (horizontal position and depth) controlled by the set of commands. Moves mechanics are slightly different between subtasks, but the overall approach and goal are the same -- model moves and find the resulting position. Complete task is here. The first sub-task can be solved by folding horizontal position and depth changes, but the second sub-task should be modeled exact

## Using Advent of Code to Practice Python and Algorithm Implementation

DevFeed: [Using Advent of Code to Practice Python and Algorithm Implementation](<https://devfeed.tech/articles/the-kata-27312.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201908/the-kata/>)

Published: 2019-08-13T00:00:00Z

Content type: opinion

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [Graphs](<https://devfeed.tech/topics/graphs.md>), [Mazes](<https://devfeed.tech/topics/maze.md>)

Tags: [adventofcode](<https://devfeed.tech/tags/adventofcode.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [puzzles](<https://devfeed.tech/tags/puzzles.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

The author describes using Advent of Code puzzles to deepen Python knowledge and practice algorithm implementation. A maze-solving problem provided practice with graph traversal, shortest-path reasoning, and measuring traveled distance.

### Source excerpt

I'm learning python for some time now. I've made myself familiar with the syntax and then started looking into other ways to increase my knowledge about language and learn its quirks. I've found a very nice site that allows me to practice basics and strengthen different kind of muscles that I'm using in my day job - adventofcode. Read more

## Adventures with ReasonML

DevFeed: [Adventures with ReasonML](<https://devfeed.tech/articles/adventures-with-reasonml-52436.md>)

Original publisher: [Read original article](<http://www.jackfranklin.co.uk/blog/adventures-with-reasonml/>)

Published: 2019-01-23T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jack Franklin](<https://devfeed.tech/sources/jack-franklin.md>)

Topics: [Reason](<https://devfeed.tech/topics/reason.md>), [Functional programming](<https://devfeed.tech/topics/functional-programming.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [Elm](<https://devfeed.tech/topics/elm.md>)

Tags: [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [elm](<https://devfeed.tech/tags/elm.md>), [functional](<https://devfeed.tech/tags/functional.md>), [getting-started](<https://devfeed.tech/tags/getting-started.md>), [github](<https://devfeed.tech/tags/github.md>), [has](<https://devfeed.tech/tags/has.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [popular](<https://devfeed.tech/tags/popular.md>), [tests](<https://devfeed.tech/tags/tests.md>), [ui](<https://devfeed.tech/tags/ui.md>), [unit-tests](<https://devfeed.tech/tags/unit-tests.md>), [vscode](<https://devfeed.tech/tags/vscode.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

The author solved Advent of Code Day Two, Part One in Reason, using BuckleScript to compile to JavaScript and `bs-jest` to run tests with Jest. The walkthrough builds letter frequency dictionaries, uses `Option` results and pattern matching to count strings containing letters twice or thrice, then multiplies those totals for the checksum. The author praises JavaScript interop, Jest compatibility, clear compiler errors, documentation, `reason-vscode`, and `refmt`. As a beginner, they found the relationship between Reason, OCaml, and BuckleScript and the division between Reason and BuckleScript module documentation confusing; they also disliked that `Array.get` may raise an exception instead of returning `Option`. The author notes prior Elm experience may have eased learning and does not claim expertise.

### Source excerpt

If you follow me on Twitter, or have read this blog for a while, you'll probably know that I'm a big fan of Elm. It's a functional, strictly typed language that compiles to JavaScript and is a great alternative to JavaScript for building web applications. That said, it's not the only contender in this space. Reason is also a very popular option that has gained a lot of traction recently. I've always been interested in trying it out, and Advent of Code, a series of coding challenges posted each day leading up to Christmas, gave me a great excuse. If you're into Elm, you might also be interested to know that I've done two videos completing Advent of Code challenges in Elm that you can find on Youtube. If you're eager to skip ahead into the code, you can find it all on GitHub. In the rest of this post I'll talk you through my approach to getting up and running with Reason, and my thoughts on the language after trying it. I am not a Reason expert, so if you spot any errors or things I've misunderstood, please let me know! Equally, there might be better ways of solving the task, so if you have any suggestions please get in touch. The first part of this blog post talks through my approach and how I solved the problem, and then we end with a list of my good and bad parts of trying Reason. Getting started I followed the official Installation and getting started guide to get easily up and running. It involved installing the compiler, BuckleScript, which is what takes Reason and produces JavaScript. That let me run: bsb -init my-new-project -theme basic-reason To get a basic project up and running! I also installed reason-vscode so that I had nice error highlighting and type hinting as I coded. I find this particularly useful when working with a new language/framework that I'm not super familiar with. Writing tests I didn't want to build a UI to solve the Advent of Code problem; so I did a bit of googling to see if I could use Reason to write some unit tests, and solve the pr

## Python Utilities by Peter Norvig

DevFeed: [Python Utilities by Peter Norvig](<https://devfeed.tech/articles/python-utilities-by-peter-norvig-31838.md>)

Original publisher: [Read original article](<https://www.metachris.dev/2016/12/peter-norvigs-python-utilities-advent-of-code/>)

Author: Chris Hager

Published: 2016-12-27T00:00:00Z

Content type: article

Language: en

Sources: [Chris Hager](<https://devfeed.tech/sources/chris-hager.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [code](<https://devfeed.tech/tags/code.md>), [programming](<https://devfeed.tech/tags/programming.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

The article presents Python utility functions from Peter Norvig's Advent of Code work, including imports and an input-file helper, and points readers to the full post for further solutions.

### Source excerpt

Peter Norvig, the famous American computer scientist and Director of Research at Google Inc., participated in this year's Advent of Code (a series of small programming puzzles), and shared his experience in an interesting blog post. The post starts with this amazing collection of Python utility functions, which may also be useful for your next project: # Python 3.x import re import numpy as np import math import urllib.request from collections import Counter, defaultdict, namedtuple, deque from functools import lru_cache from itertools import permutations, combinations, chain, cycle, product from heapq import heappop, heappush def Input(day): "Open this day's input file.

## Advent of Code 2016

DevFeed: [Advent of Code 2016](<https://devfeed.tech/articles/advent-of-code-2016-40525.md>)

Original publisher: [Read original article](<http://nbviewer.ipython.org/url/norvig.com/ipython/Advent%20of%20Code.ipynb>)

Published: 2016-12-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Peter Norvig](<https://devfeed.tech/sources/peter-norvig.md>)

Topics: [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Code Challenge](<https://devfeed.tech/topics/code-challenge.md>), [Jupyter Notebook](<https://devfeed.tech/topics/jupyter-notebook.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [code](<https://devfeed.tech/tags/code.md>), [jupyter-notebook](<https://devfeed.tech/tags/jupyter-notebook.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [solutions](<https://devfeed.tech/tags/solutions.md>), [test](<https://devfeed.tech/tags/test.md>)

### AI overview

Peter Norvig documents his solutions to the Advent of Code puzzles released from December 1 through December 25, 2016. The notebook includes preparation, utility functions, tests, and selected explanations of his solving approach.

### Source excerpt

Solutions to the puzzle site.