Follow

Golfing day 1 in 05ab1e

part1:
|DÁøε`.S}1.$ʒ0›}O

part2:
|D3(._øε`.S}1.$ʒ0›}O

@sotolf looks like you let a cat step over your keyboard.

@garritfra Hehe, yeah, it looks very strange, I have an explanation posted here:

teddit.net/r/adventofcode/comm

so that you can see what it actually does ;)

@sotolf

This solution is 24 bytes
My solution is 602

The language is truly great at compression. Good job regardless 😁

@yyp Thank you :) A lot is saved in by most of the functions using 1 or 2 byte names, and then being stack based means it doesn't use variables :) It's a really fun exercise, I'm sure someone that are a bit better in the language can shave off quite a bit more since this is kind of a naive way to do it, I'm sure there are some more clever ways to do it :)

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.