Thankfully this is not production code. 😄 #adventofcode #kotlin
=> More informations about this toot | More toots from henrikjernevad@mastodon.social
@henrikjernevad Correct. This is much, much better than most production code.
TBH, I think this is absolutely fine. Perhaps you’d want a big comment explaining the requirements at the top (or put it in a test case),
=> More informations about this toot | More toots from samir@functional.computer
@samir Hehe, I guess you're right. Maybe it's just that I don't solve these kinds of problems for a living. 😁
=> More informations about this toot | More toots from henrikjernevad@mastodon.social
@henrikjernevad I'm happy i managed to make it into a loop, but yeah, same idea, you just unrolled it by hand 😆
=> More informations about this toot | More toots from tshirtman@mas.to
@tshirtman Yeah, i thought of doing something like your solution. It seems more elegant. This was just the first that came to my mind. 😊
=> More informations about this toot | More toots from henrikjernevad@mastodon.social This content has been proxied by September (3851b).Proxy Information
text/gemini