Toot

Written by Russ Cox on 2024-12-02 at 15:34

Ivy remains a good choice for

[#]AdventOfCode.

Day 1:

sample = transp read "sample.txt"

op sort x = x[up x]

op solve x = +/abs (sort x[1]) - sort x[2]

solve sample

op solve2 x = +/x[1] * +/x[1] o.== x[2]

solve2 sample

https://adventofcode.com

(Ivy in 2021: https://www.youtube.com/playlist?list=PLrwpzH1_9ufMLOB6BAdzO08Qx-9jHGfGg)

=> More informations about this toot | View the thread | More toots from rsc@hachyderm.io

Mentions

Tags

=> View adventofcode tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113583957282304663
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
244.231136 milliseconds
Gemini-to-HTML Time
0.701196 milliseconds

This content has been proxied by September (3851b).