Skip to content

Instantly share code, notes, and snippets.

View kjelloh's full-sized avatar

kjelloh

View GitHub Profile
@kjelloh
kjelloh / AdventOfCode201224_2.cpp
Created December 24, 2020 22:11
Advent of Code 2020 day 24 part 2
//
// main.cpp
// AdventOfCode201224_2
//
// Created by Kjell-Olov Högdal on 2020-12-24.
//
#include <iostream>
#include <bitset>
#include <vector>
@kjelloh
kjelloh / AdventOfCode201224_1.cpp
Created December 24, 2020 16:07
Advent of Code 2020 day 24 part 1
// Watch me live code this solution at youtube https://youtu.be/c7leYFIyFiU
// main.cpp
// AdventOfCode201224_1
//
// Created by Kjell-Olov Högdal on 2020-12-24.
//
#include <iostream>
#include <bitset>
#include <vector>
@kjelloh
kjelloh / AdventOfCode201223_1.cpp
Created December 23, 2020 10:00
Advent of Code 2020 day 23 part 1 solution
//
// main.cpp
// AdventOfCode201223_1
//
// Created by Kjell-Olov Högdal on 2020-12-23.
//
#include <iostream>
#include <string>
#include <algorithm>
@kjelloh
kjelloh / AdventOfCode201222_1.cpp
Created December 22, 2020 06:56
Advent of Code 2020 day 22 part 1
//
// main.cpp
// AdventOdCode201222_1
//
// Created by Kjell-Olov Högdal on 2020-12-22.
//
#include <iostream>
#include <sstream>
#include <utility>
@kjelloh
kjelloh / AdventOfCode201221_1.cpp
Created December 21, 2020 21:16
Advent of Code 2020 day 21 part 1 NOT SOLVED. But program outputs system of constraints to solve (set algebra :) )
//
// main.cpp
// AdventOfCode201221_1
//
// Created by Kjell-Olov Högdal on 2020-12-21.
//
#include <iostream>
#include <sstream>
#include <string>
@kjelloh
kjelloh / AdventOfCode201220_1.cpp
Last active December 20, 2020 21:25
Advent of Code 2020 Day 20 - working but not so clean solution ;)
//
// main.cpp
// AdventOfCode201220_1
//
// Created by Kjell-Olov Högdal on 2020-12-20.
//
#include <iostream>
#include <vector>
#include <numeric>
@kjelloh
kjelloh / AdventOfCode201218_2.cpp
Created December 18, 2020 23:18
Advent Of Code 2020 day 18 part 2 quick and "dirty" solution ;)
// Watch live coding this solution at Youtube https://youtu.be/IHpz-cGqV8I
// main.cpp
// AdventOfCode201218_2
//
// Created by Kjell-Olov Högdal on 2020-12-18.
//
#include <iostream>
#include <vector>
#include <sstream>
@kjelloh
kjelloh / AdventOfCode201218_1.cpp
Created December 18, 2020 21:26
Advent of Code 2020 day 18 part 1 quick and "dirty" solution ;)
// Watch live coding of this solution at Youtube https://youtu.be/aNwMQOFzQ1w
// main.cpp
// AdventOfCode201218_1
//
// Created by Kjell-Olov Högdal on 2020-12-18.
//
#include <iostream>
#include <vector>
#include <sstream>
#include <variant>
@kjelloh
kjelloh / AdventOfCode201216_1.cpp
Created December 16, 2020 22:05
Advent of Code 2020 day 16 part 1 quick and "dirty" solution ;)
// Watch live coding of this solution at youtube https://youtu.be/Pc-Y69Yauzs
// main.cpp
// AdventOfCode201216_1
//
// Created by Kjell-Olov Högdal on 2020-12-16.
//
#include <iostream>
#include <utility>
#include <map>
@kjelloh
kjelloh / AdventOfCode201214_1.cpp
Created December 15, 2020 21:37
Advent of Code 2020 day 14 part 1 quick and "dirty" solution ;)
// Watch live coding this solution at youtube https://youtu.be/jqbCWGBGjrw
// main.cpp
// AdventOfCode201214_1
//
// Created by Kjell-Olov Högdal on 2020-12-15.
//
#include <iostream>
#include <sstream>