Day 11: Reactor

Megathread guidelines

FAQ

  • EnEnCode
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 months ago

    If you can explain why it works, not calculating half the paths isn’t a hack—it’s an optimization. ;)

    • CameronDevOPM
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      I think the hack was just skipping the entire second set of paths, but yeah, splitting was an nice optimisation. Might not scale as well if that path had to hit multiple intermediate nodes though.