Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

Halfway through #AdventOfCode for 2025 and I'm still managing to write the solutions in #Fortran 77.

Uncategorized
2 2 3

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • #AdventOfCode #Day8 with #rust

    Uncategorized adventofcode day8 rust
    1
    0 Votes
    1 Posts
    8 Views
    #AdventOfCode #Day8 with #rust I spent an inordinate amount of time on part1 because * imo the problem definition is wrong* it does matter if you put permutations or combinations in the list, even if you filter them out :( Part 2 is basically the same and I already did it in ruby so I'm not doing it again, at least not today.I wanted to do this with union-find but I have yet to get to the chapter about generics and it seems cheating to do it without it :) https://gist.github.com/riffraff/267f1e326e447815ab0ac28f217bc01f
  • #AdventOfCode #Day7 with #rust

    Uncategorized adventofcode day7 rust
    4
    0 Votes
    4 Posts
    8 Views
    @teotwaki I used a hash in my ruby version for part 2, but I didn't think of the DFS/DP idea, nice
  • #AdventOfCode #Day3

    Uncategorized adventofcode day3 rust
    6
    0 Votes
    6 Posts
    13 Views
    @jonathan thanks!
  • 0 Votes
    1 Posts
    7 Views
    so, #Day2 of #AdventOfCode with #rust and #ruby.Brute force, but in ruby it feels more natural for me to create a bunch of arrays, in rust it seemed easier to fiddle with array indexes. I wonder if I could use some "zero cost" slices?I'm pretty sure I could do both things the same way tho. Also my first rust tests! I'm not sure what the naming convention is supposed to be, the rust book doesn't make it clear imo.https://gist.github.com/riffraff/0aae02aeaa3af9e0320b8d944ab78e2d