Day 3: Foggy Forest

Megathread guidelines

  • Keep top level comments as only solutions, if you want to say something other than a solution put it in a new post. (replies to comments can be whatever)
  • You can send code in code blocks by using three backticks, the code, and then three backticks or use something such as https://topaz.github.io/paste/ if you prefer sending it through a URL

FAQ

  • CameronDev@programming.devOPM
    link
    fedilink
    arrow-up
    2
    ·
    20 hours ago

    For pt2, another way to handle/prevent duplicates is to remove the trees as you go. Most of my performance issues went away in release mode, i got pt2 to 2-3ms, which is good enough. Would prefer <1ms, but further optimising is basically just taking someone elses solution, so I’ll live with my inadequacy :D