Day 1: Dusty Shed

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

  • mykl
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    2 days ago

    Uiua

    A nice gentle start… [edit: slightly tweaked to save 6 operations]

    "57\n57\n55\n57\n76\n78\n57\n45\n43\n78\n43\n76\n43\n78\n57\n45\n57\n76\n43\n43\n76"
    ⋕⊜□⊸≠@\n   # Split lines.
    ⊕⊃⧻⊢⊸⊛     # Group by occurrences.
    ∩/×∩↙₃⊸⇌⊏⍏ # Sort, take first, last three.
    
    • eta@feddit.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      How do you actually write this? Do have all symbols mapped to your keyboard somehow or do you have a list with symbols and copy them one symbol at a time?

      • mykl
        link
        fedilink
        arrow-up
        3
        ·
        2 days ago

        There’s a very good online editor at the Uiua website, and an excellent extension for Visual Studio.

        They both allow you to type mnemonics for the symbols and common idioms, so that first line would be typed as parse partition box by ne @\n or pars pbbn @\n if you’re really in a hurry.