Git Product home page Git Product logo

katsaii / advent-of-code Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 366 KB

Certainly sub-optimal solutions to Advent of Code challenges; written in many different programming languages.

JavaScript 2.68% Ruby 12.93% C 12.61% Makefile 1.89% Haskell 8.55% Rust 18.55% Python 10.80% Prolog 6.70% Shell 4.10% Lua 2.70% C++ 1.18% Haxe 3.16% Go 5.85% ChucK 0.76% Julia 6.25% Zig 1.28%
advent-of-code advent-of-code-2019 advent-of-code-2020 advent-of-code-2021 advent-of-code-2022 advent-of-code-2023

advent-of-code's Introduction

% pairs:    [-katsaii,k-atsaii,ka-tsaii,kat-saii,kats-aii,katsa-ii,katsai-i,katsaii-]
% prefixes: [,k,ka,kat,kats,katsa,katsai,katsaii]
% suffixes: [katsaii,atsaii,tsaii,saii,aii,ii,i,]

name("katsaii").

?-
  name(Name),
  findall(Prefix-Suffix, string_concat(Prefix, Suffix, Name), Pairs),
  pairs_keys_values(Pairs, Prefixes, Suffixes),

  write("pairs:    "), write(Pairs), nl,
  write("prefixes: "), write(Prefixes), nl,
  write("suffixes: "), write(Suffixes).

Try it online!

advent-of-code's People

Contributors

katsaii avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.