so, #Day2 of #AdventOfCode with #rust and #ruby
Uncategorized
1
Posts
1
Posters
0
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