• Acters@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 hour ago

    haha, there are way too many days where I end up with code that works with the sample but fails the real input. its just not really possible to expect the sample and description to properly prepare you. oh well, it is what it is.

  • hades@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    4 days ago

    Good, although it took some time. Actually, I got my personal best global rank on that problem.

    • mykl@lemmy.worldOP
      link
      fedilink
      arrow-up
      0
      ·
      4 days ago

      Haha, I spent about two hours fiddling about in the debugger and drawing bad diagrams to get an answer. I just checked and it turns out that I also got my personal best ranking on it too, though I’m not sure it should count :-)

      • hades@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        4 days ago

        That just makes sense – the top-1k are competitive programmers, and today’s puzzle had nothing to do with competitive programming :)

        • mykl@lemmy.worldOP
          link
          fedilink
          arrow-up
          0
          ·
          4 days ago

          True, I’ve just been looking at the comments on the other place, and pretty much everyone there seems to have resorted to figuring it out manually too.