Day 9: Disk Fragmenter

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

  • @VegOwOtenks
    link
    23 days ago

    It will always be a wonder to me how you manage to do so much in so few lines, even your naive solution only takes a few seconds to run. 🤯

    • lwhjp
      link
      fedilink
      13 days ago

      Aww, thank you <3

      It’s just practice, I guess? (The maths degree probably doesn’t hurt either)

      • @VegOwOtenks
        link
        23 days ago

        Maths degree at least explains the choice of language