tiflolinux.org - GNU Social
  • Login

Bienvenido

  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Elias Mårtenson (loke@functional.cafe)'s status on Wednesday, 01-Dec-2021 19:18:24 CET Elias Mårtenson Elias Mårtenson

    Since people are posting solutions to advent of code, I decided to take a stab at it in KAP. Here's my solution for the first problem, assuming input data is in the file part01.txt

    +/0>2-/ ⍎¨ io:read "part01.txt"
    In conversation Wednesday, 01-Dec-2021 19:18:24 CET from functional.cafe permalink
    • Ekaitz Zárraga 👹 repeated this.
    • Elias Mårtenson (loke@functional.cafe)'s status on Wednesday, 01-Dec-2021 19:18:24 CET Elias Mårtenson Elias Mårtenson
      in reply to

      And the second case in KAP just adds another few characters to the solution in order to compute the window:

      +/0>2-/3+/ ⍎¨ io:read "part01.txt"
      In conversation Wednesday, 01-Dec-2021 19:18:24 CET permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.