eco_game@discuss.tchncs.de to Advent Of Code@programming.devEnglish · 19 days ago[2025 Day 7] As long as the result is positive, it can't have overflown, right?discuss.tchncs.deimagemessage-square3linkfedilinkarrow-up142arrow-down12
arrow-up140arrow-down1image[2025 Day 7] As long as the result is positive, it can't have overflown, right?discuss.tchncs.deeco_game@discuss.tchncs.de to Advent Of Code@programming.devEnglish · 19 days agomessage-square3linkfedilink
minus-squareDeebster@programming.devlinkfedilinkEnglisharrow-up3·18 days agoI normally use the “most appropriate” size, but this year I’m just using usize everywhere and it’s a lot more fun. So far I haven’t found any problem where it ran too slow and the problem was in my implementation and not my algorithm choice.
I normally use the “most appropriate” size, but this year I’m just using usize everywhere and it’s a lot more fun. So far I haven’t found any problem where it ran too slow and the problem was in my implementation and not my algorithm choice.