Day 9: Movie Theater

Megathread guidelines

FAQ

  • NominatedNemesis
    link
    fedilink
    arrow-up
    2
    ·
    3 months ago

    I solved with geo as well. Brute force to all possible rectangles from the polygon points. Tried to run it but after 30 seckilled it and just imported rayon. It’s under 3 sec. There is no shame using libraries, it’s part of the puzzle to know whics one is useful 😄

    • CameronDev@programming.devOPM
      link
      fedilink
      arrow-up
      2
      ·
      3 months ago

      I find it helpful to use a library to get the solution, and then work backwards to replace the library. I got rid of geo and got mine down to milliseconds.