├── 2015
├── .gitignore
├── README.md
├── day10
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day11
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day12
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day13
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day14
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day15
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day16
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day17
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day18
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day19
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day20
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day21
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day22
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day23
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day24
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day25
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day7
│ ├── README.md
│ ├── index.html
│ └── script.js
└── day9
│ ├── README.md
│ ├── index.html
│ └── script.js
├── 2016
├── .gitignore
├── README.md
├── day10
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day11
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day12
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day13
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day14
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day15
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day16
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day17
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day18
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day19
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day20
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day21
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day22
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day23
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day24
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day25
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day3
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day4
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day5
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day6
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day7
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day8
│ ├── README.md
│ ├── index.html
│ └── script.js
└── day9
│ ├── README.md
│ ├── index.html
│ └── script.js
├── 2017
├── .gitignore
├── README.md
├── day10
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day11
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day12
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day13
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day14
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day15
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day16
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day17
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day18
│ ├── Computer.js
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day19
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day20
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day21
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day22
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day23
│ ├── Computer.js
│ ├── README.md
│ ├── index.html
│ ├── program.html
│ ├── program.js
│ └── script.js
├── day24
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day25
│ ├── README.md
│ ├── TuringMachine.js
│ ├── index.html
│ └── script.js
├── day3
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day4
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day5
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day6
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day7
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day8
│ ├── README.md
│ ├── index.html
│ └── script.js
└── day9
│ ├── README.md
│ ├── index.html
│ └── script.js
├── 2018
├── .gitignore
├── README.md
├── day10
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day11
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day12
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day13
│ ├── README.md
│ ├── cart-left-right.png
│ ├── cart-top-bottom.png
│ ├── index.html
│ ├── input.txt
│ ├── rails.png
│ └── script.js
├── day14
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day15
│ ├── README.md
│ ├── elf.png
│ ├── goblin.png
│ ├── index.html
│ └── script.js
├── day16
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day17
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day18
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day19
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day20
│ ├── README.md
│ ├── index.html
│ ├── script.js
│ ├── tree.html
│ └── tree.js
├── day21
│ ├── README.md
│ ├── index.html
│ ├── program.html
│ ├── program.js
│ └── script.js
├── day22
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day23
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day24
│ ├── Army.js
│ ├── Group.js
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day25
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day3
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day4
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day5
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day6
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day7
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day8
│ ├── README.md
│ ├── index.html
│ └── script.js
└── day9
│ ├── README.md
│ ├── index.html
│ └── script.js
├── 2019
├── .gitignore
├── README.md
├── day1
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day10
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day11
│ ├── Computer.js
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day12
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day13
│ ├── Computer.js
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day14
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day15
│ ├── Computer.js
│ ├── README.md
│ ├── index.html
│ ├── input.public.js
│ ├── script.js
│ └── unknown_bot.png
├── day16
│ ├── README.md
│ ├── index.html
│ ├── script-part2.js
│ └── script.js
├── day17
│ ├── Computer.js
│ ├── README.md
│ ├── index.html
│ ├── initstate.txt
│ └── script.js
├── day18
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day19
│ ├── Computer.js
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day2
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day20
│ ├── README.md
│ ├── index.html
│ ├── script.js
│ └── script.part1.js
├── day21
│ ├── Computer.js
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day22
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day23
│ ├── Computer.js
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day24
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day25
│ ├── Computer.js
│ ├── README.md
│ ├── index.html
│ ├── input.pub.js
│ └── script.js
├── day3
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day4
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day5
│ ├── Computer.js
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day6
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day7
│ ├── Computer.js
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day8
│ ├── README.md
│ ├── index.html
│ └── script.js
└── day9
│ ├── Computer.js
│ ├── README.md
│ ├── index.html
│ └── script.js
├── 2020
├── README.md
├── day1
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day10
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day11
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day12
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day13
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day14
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day15
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day16
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day17
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day18
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day19
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day2
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day20
│ ├── README.md
│ ├── TileSet.js
│ ├── index.html
│ └── script.js
├── day21
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day22
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day23
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day24
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day25
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day3
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day4
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day5
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day6
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day7
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day8
│ ├── README.md
│ ├── index.html
│ └── script.js
└── day9
│ ├── README.md
│ ├── index.html
│ └── script.js
├── 2021
├── README.md
├── day1
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day10
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day11
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day12
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day13
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day14
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day15
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day16
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day17
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day18
│ ├── FishTree.js
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day19
│ ├── README.md
│ ├── index.html
│ ├── input.pub.js
│ └── script.js
├── day2
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day20
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day21
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day22
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day23
│ ├── README.md
│ ├── index.game.html
│ ├── index.html
│ ├── input.pub.js
│ ├── modules
│ │ ├── baseDOM.js
│ │ ├── game.js
│ │ ├── gameLogic.js
│ │ ├── gui.js
│ │ ├── prefix.js
│ │ ├── render.js
│ │ └── vect.js
│ ├── resources
│ │ ├── applause.mp3
│ │ ├── bigApplause.mp3
│ │ ├── energyicon.png
│ │ ├── mb-body.png
│ │ ├── mb-bottom.png
│ │ ├── mb-top.png
│ │ ├── sndonoff.png
│ │ ├── spritesheet.png
│ │ ├── steps.mp3
│ │ └── stripebg.png
│ ├── script.js
│ ├── styles.css
│ └── worker.js
├── day24
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day25
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day3
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day4
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day5
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day6
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day7
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day8
│ ├── README.md
│ ├── index.html
│ └── script.js
└── day9
│ ├── README.md
│ ├── index.html
│ └── script.js
├── 2022
├── README.md
├── day1
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day10
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day11
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day12
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day13
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day14
│ ├── README.md
│ ├── index.anim.html
│ ├── index.html
│ ├── script.anim.js
│ └── script.js
├── day15
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day16
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day17
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day18
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day19
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day2
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day20
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day21
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day22
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day23
│ ├── README.md
│ ├── elf.png
│ ├── index.html
│ └── script.js
├── day24
│ ├── README.md
│ ├── elf.png
│ ├── index.anim.html
│ ├── index.game.html
│ ├── index.html
│ ├── input.game.js
│ ├── resources
│ │ ├── Grue.png
│ │ ├── GrueBloody.png
│ │ ├── GrueBloodyGrin.png
│ │ ├── GrueGrin.png
│ │ ├── hurt
│ │ │ ├── BELT_leather.png
│ │ │ ├── BELT_rope.png
│ │ │ ├── BODY_male.png
│ │ │ ├── BODY_skeleton.png
│ │ │ ├── FEET_plate_armor_shoes.png
│ │ │ ├── FEET_shoes_brown.png
│ │ │ ├── HANDS_plate_armor_gloves.png
│ │ │ ├── HEAD_chain_armor_helmet.png
│ │ │ ├── HEAD_chain_armor_hood.png
│ │ │ ├── HEAD_hair_blonde.png
│ │ │ ├── HEAD_leather_armor_hat.png
│ │ │ ├── HEAD_plate_armor_helmet.png
│ │ │ ├── HEAD_robe_hood.png
│ │ │ ├── LEGS_pants_greenish.png
│ │ │ ├── LEGS_plate_armor_pants.png
│ │ │ ├── LEGS_robe_skirt.png
│ │ │ ├── TORSO_chain_armor_jacket_purple.png
│ │ │ ├── TORSO_chain_armor_torso.png
│ │ │ ├── TORSO_leather_armor_bracers.png
│ │ │ ├── TORSO_leather_armor_shirt_white.png
│ │ │ ├── TORSO_leather_armor_shoulders.png
│ │ │ ├── TORSO_leather_armor_torso.png
│ │ │ ├── TORSO_plate_armor_arms_shoulders.png
│ │ │ ├── TORSO_plate_armor_torso.png
│ │ │ └── TORSO_robe_shirt_brown.png
│ │ ├── spellcast
│ │ │ ├── BELT_leather.png
│ │ │ ├── BELT_rope.png
│ │ │ ├── BODY_male.png
│ │ │ ├── BODY_skeleton.png
│ │ │ ├── FEET_plate_armor_shoes.png
│ │ │ ├── FEET_shoes_brown.png
│ │ │ ├── HANDS_plate_armor_gloves.png
│ │ │ ├── HEAD_chain_armor_helmet.png
│ │ │ ├── HEAD_chain_armor_hood.png
│ │ │ ├── HEAD_hair_blonde.png
│ │ │ ├── HEAD_leather_armor_hat.png
│ │ │ ├── HEAD_plate_armor_helmet.png
│ │ │ ├── HEAD_robe_hood.png
│ │ │ ├── LEGS_pants_greenish.png
│ │ │ ├── LEGS_plate_armor_pants.png
│ │ │ ├── LEGS_robe_skirt.png
│ │ │ ├── TORSO_chain_armor_jacket_purple.png
│ │ │ ├── TORSO_chain_armor_torso.png
│ │ │ ├── TORSO_leather_armor_bracers.png
│ │ │ ├── TORSO_leather_armor_shirt_white.png
│ │ │ ├── TORSO_leather_armor_shoulders.png
│ │ │ ├── TORSO_leather_armor_torso.png
│ │ │ ├── TORSO_plate_armor_arms_shoulders.png
│ │ │ ├── TORSO_plate_armor_torso.png
│ │ │ └── TORSO_robe_shirt_brown.png
│ │ ├── spritesheet.png
│ │ ├── terrain_3.png
│ │ └── walk
│ │ │ ├── BELT_leather.png
│ │ │ ├── BELT_rope.png
│ │ │ ├── BODY_male.png
│ │ │ ├── BODY_skeleton.png
│ │ │ ├── FEET_plate_armor_shoes.png
│ │ │ ├── FEET_shoes_brown.png
│ │ │ ├── HANDS_plate_armor_gloves.png
│ │ │ ├── HEAD_chain_armor_helmet.png
│ │ │ ├── HEAD_chain_armor_hood.png
│ │ │ ├── HEAD_hair_blonde.png
│ │ │ ├── HEAD_leather_armor_hat.png
│ │ │ ├── HEAD_plate_armor_helmet.png
│ │ │ ├── HEAD_robe_hood.png
│ │ │ ├── LEGS_pants_greenish.png
│ │ │ ├── LEGS_plate_armor_pants.png
│ │ │ ├── LEGS_robe_skirt.png
│ │ │ ├── TORSO_chain_armor_jacket_purple.png
│ │ │ ├── TORSO_chain_armor_torso.png
│ │ │ ├── TORSO_leather_armor_bracers.png
│ │ │ ├── TORSO_leather_armor_shirt_white.png
│ │ │ ├── TORSO_leather_armor_shoulders.png
│ │ │ ├── TORSO_leather_armor_torso.png
│ │ │ ├── TORSO_plate_armor_arms_shoulders.png
│ │ │ ├── TORSO_plate_armor_torso.png
│ │ │ └── TORSO_robe_shirt_brown.png
│ ├── script.anim.js
│ ├── script.game.js
│ ├── script.js
│ └── spritesheet.png
├── day25
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day3
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day4
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day5
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day6
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day7
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day8
│ ├── README.md
│ ├── index.html
│ └── script.js
└── day9
│ ├── README.md
│ ├── index.html
│ └── script.js
├── 2023
├── README.md
├── day1
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day10
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day11
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day12
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day13
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day14
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day15
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day16
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day17
│ ├── FastPriorityQueue.js
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day18
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day19
│ ├── README.md
│ ├── index.html
│ ├── input.sample.js
│ └── script.js
├── day2
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day20
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day21
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day22
│ ├── README.md
│ ├── index.anim.html
│ ├── index.html
│ ├── input.sample.js
│ ├── script.anim.js
│ └── script.js
├── day23
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day24
│ ├── README.md
│ ├── index.anim.html
│ ├── index.html
│ ├── input.sample.js
│ ├── script.anim.js
│ └── script.js
├── day25
│ ├── README.md
│ ├── index.html
│ ├── input.dot
│ ├── output.svg
│ └── script.js
├── day3
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day4
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day5
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day6
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day7
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day8
│ ├── README.md
│ ├── index.html
│ └── script.js
└── day9
│ ├── README.md
│ ├── index.html
│ └── script.js
├── 2024
├── README.md
├── day1
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day10
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day11
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day12
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day13
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day14
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day15
│ ├── README.md
│ ├── index.anim.html
│ ├── index.html
│ ├── input.anim.js
│ ├── script.anim.js
│ └── script.js
├── day16
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day17
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day18
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day19
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day2
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day20
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day21
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day22
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day23
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day24
│ ├── README.md
│ ├── index.html
│ ├── script.js
│ └── solution.md
├── day25
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day3
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day4
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day5
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day6
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day7
│ ├── README.md
│ ├── index.html
│ └── script.js
├── day8
│ ├── README.md
│ ├── index.html
│ └── script.js
└── day9
│ ├── README.md
│ ├── index.html
│ └── script.js
├── .gitignore
├── LICENSE
├── README.md
├── _config.yml
└── screenshots
├── 10_more_pls.png
├── 2018_13.png
├── 2018_15.png
├── 2018_17.png
├── 2019_13.png
├── 2019_15.png
├── 2019_25.png
├── 2020_20.png
├── 2021_23.png
├── 2021_25.png
├── 2022_14.png
├── 2022_22.png
├── 2022_23.png
├── 2022_24.png
├── 2023_10.png
├── 2023_18.png
├── 2023_19.png
├── 2023_22.png
├── 2023_24.png
├── 2024_14.png
└── 2024_15.png
/.gitignore:
--------------------------------------------------------------------------------
1 | **/.DS_Store
2 | **/input.js
3 | scaffold.js
--------------------------------------------------------------------------------
/2015/.gitignore:
--------------------------------------------------------------------------------
1 | /*.js
2 | /*.html
--------------------------------------------------------------------------------
/2015/day10/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 10
2 |
3 | https://adventofcode.com/2015/day/10
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day10/index.html
--------------------------------------------------------------------------------
/2015/day10/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2015/day11/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 11
2 |
3 | https://adventofcode.com/2015/day/11
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day11/index.html
--------------------------------------------------------------------------------
/2015/day11/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2015/day12/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 12
2 |
3 | https://adventofcode.com/2015/day/12
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day12/index.html
--------------------------------------------------------------------------------
/2015/day12/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2015/day13/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 13
2 |
3 | https://adventofcode.com/2015/day/13
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day13/index.html
--------------------------------------------------------------------------------
/2015/day13/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2015/day14/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 14
2 |
3 | https://adventofcode.com/2015/day/14
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day14/index.html
--------------------------------------------------------------------------------
/2015/day14/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2015/day15/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 15
2 |
3 | https://adventofcode.com/2015/day/15
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day15/index.html
--------------------------------------------------------------------------------
/2015/day15/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2015/day16/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 16
2 |
3 | https://adventofcode.com/2015/day/16
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day16/index.html
--------------------------------------------------------------------------------
/2015/day16/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2015/day17/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 17
2 |
3 | https://adventofcode.com/2015/day/17
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day17/index.html
--------------------------------------------------------------------------------
/2015/day17/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2015/day18/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 18
2 |
3 | https://adventofcode.com/2015/day/18
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day18/index.html
--------------------------------------------------------------------------------
/2015/day18/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2015/day19/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 19
2 |
3 | https://adventofcode.com/2015/day/19
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day19/index.html
--------------------------------------------------------------------------------
/2015/day19/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2015/day20/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 20
2 |
3 | https://adventofcode.com/2015/day/20
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day20/index.html
--------------------------------------------------------------------------------
/2015/day20/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2015/day21/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 21
2 |
3 | https://adventofcode.com/2015/day/21
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day21/index.html
--------------------------------------------------------------------------------
/2015/day21/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2015/day22/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2015/day23/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 23
2 |
3 | https://adventofcode.com/2015/day/23
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day23/index.html
--------------------------------------------------------------------------------
/2015/day23/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2015/day24/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 24
2 |
3 | https://adventofcode.com/2015/day/24
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day24/index.html
--------------------------------------------------------------------------------
/2015/day24/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2015/day25/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 25
2 |
3 | https://adventofcode.com/2015/day/25
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day25/index.html
--------------------------------------------------------------------------------
/2015/day25/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2015/day7/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 7
2 |
3 | https://adventofcode.com/2015/day/7
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day7/index.html
--------------------------------------------------------------------------------
/2015/day7/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2015/day9/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2015 - Day 9
2 |
3 | https://adventofcode.com/2015/day/9
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2015/day9/index.html
--------------------------------------------------------------------------------
/2015/day9/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2015
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2016/.gitignore:
--------------------------------------------------------------------------------
1 | /*.js
2 | /*.html
--------------------------------------------------------------------------------
/2016/day10/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 10
2 |
3 | https://adventofcode.com/2016/day/10
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day10/index.html
--------------------------------------------------------------------------------
/2016/day10/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2016/day11/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 11
2 |
3 | https://adventofcode.com/2016/day/11
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day11/index.html
--------------------------------------------------------------------------------
/2016/day11/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2016/day12/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 12
2 |
3 | https://adventofcode.com/2016/day/12
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day12/index.html
--------------------------------------------------------------------------------
/2016/day12/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2016/day13/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 13
2 |
3 | https://adventofcode.com/2016/day/13
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day13/index.html
--------------------------------------------------------------------------------
/2016/day13/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2016/day14/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 14
2 |
3 | https://adventofcode.com/2016/day/14
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day14/index.html
--------------------------------------------------------------------------------
/2016/day15/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 15
2 |
3 | https://adventofcode.com/2016/day/15
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day15/index.html
--------------------------------------------------------------------------------
/2016/day15/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2016/day16/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 16
2 |
3 | https://adventofcode.com/2016/day/16
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day16/index.html
--------------------------------------------------------------------------------
/2016/day16/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2016/day17/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 17
2 |
3 | https://adventofcode.com/2016/day/17
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day17/index.html
--------------------------------------------------------------------------------
/2016/day18/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 18
2 |
3 | https://adventofcode.com/2016/day/18
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day18/index.html
--------------------------------------------------------------------------------
/2016/day18/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2016/day19/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 19
2 |
3 | https://adventofcode.com/2016/day/19
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day19/index.html
--------------------------------------------------------------------------------
/2016/day19/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2016/day20/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 20
2 |
3 | https://adventofcode.com/2016/day/20
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day20/index.html
--------------------------------------------------------------------------------
/2016/day20/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2016/day21/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 21
2 |
3 | https://adventofcode.com/2016/day/21
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day21/index.html
--------------------------------------------------------------------------------
/2016/day21/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2016/day22/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 22
2 |
3 | https://adventofcode.com/2016/day/22
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day22/index.html
--------------------------------------------------------------------------------
/2016/day22/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2016/day23/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 23
2 |
3 | https://adventofcode.com/2016/day/23
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day23/index.html
--------------------------------------------------------------------------------
/2016/day23/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2016/day24/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 24
2 |
3 | https://adventofcode.com/2016/day/24
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day24/index.html
--------------------------------------------------------------------------------
/2016/day24/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2016/day25/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 25
2 |
3 | https://adventofcode.com/2016/day/25
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day25/index.html
--------------------------------------------------------------------------------
/2016/day25/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2016/day3/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 3
2 |
3 | https://adventofcode.com/2016/day/3
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day3/index.html
--------------------------------------------------------------------------------
/2016/day3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2016/day4/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 4
2 |
3 | https://adventofcode.com/2016/day/4
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day4/index.html
--------------------------------------------------------------------------------
/2016/day4/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2016/day5/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 5
2 |
3 | https://adventofcode.com/2016/day/5
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day5/index.html
--------------------------------------------------------------------------------
/2016/day6/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 6
2 |
3 | https://adventofcode.com/2016/day/6
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day6/index.html
--------------------------------------------------------------------------------
/2016/day6/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2016/day7/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 7
2 |
3 | https://adventofcode.com/2016/day/7
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day7/index.html
--------------------------------------------------------------------------------
/2016/day7/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2016/day8/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 8
2 |
3 | https://adventofcode.com/2016/day/8
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day8/index.html
--------------------------------------------------------------------------------
/2016/day8/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2016/day9/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2016 - Day 9
2 |
3 | https://adventofcode.com/2016/day/9
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2016/day9/index.html
--------------------------------------------------------------------------------
/2016/day9/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2016
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2017/.gitignore:
--------------------------------------------------------------------------------
1 | /*.js
2 | /*.html
--------------------------------------------------------------------------------
/2017/day10/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 10
2 |
3 | https://adventofcode.com/2017/day/10
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day10/index.html
--------------------------------------------------------------------------------
/2017/day10/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2017/day11/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 11
2 |
3 | https://adventofcode.com/2017/day/11
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day11/index.html
--------------------------------------------------------------------------------
/2017/day11/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2017/day12/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 12
2 |
3 | https://adventofcode.com/2017/day/12
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day12/index.html
--------------------------------------------------------------------------------
/2017/day12/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2017/day12/script.js:
--------------------------------------------------------------------------------
1 | let used = [], groups = 0, unusedId = 0;
2 |
3 | const spread = id => {
4 | if (!used.includes(id)) {
5 | used.push(id);
6 | input[id].map(spread);
7 | }
8 | }
9 |
10 | while (used.length < input.length) {
11 | while (used.includes(unusedId)) unusedId++;
12 | spread(unusedId);
13 | if (groups == 0) console.log('part 1', used.length);
14 | groups++;
15 | }
16 | console.log('part 2', groups);
--------------------------------------------------------------------------------
/2017/day13/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 13
2 |
3 | https://adventofcode.com/2017/day/13
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day13/index.html
--------------------------------------------------------------------------------
/2017/day13/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2017/day14/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 14
2 |
3 | https://adventofcode.com/2017/day/14
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day14/index.html
--------------------------------------------------------------------------------
/2017/day14/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2017/day15/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 15
2 |
3 | https://adventofcode.com/2017/day/15
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day15/index.html
--------------------------------------------------------------------------------
/2017/day15/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/2017/day16/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 16
2 |
3 | https://adventofcode.com/2017/day/16
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day16/index.html
--------------------------------------------------------------------------------
/2017/day16/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2017/day17/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 17
2 |
3 | https://adventofcode.com/2017/day/17
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day17/index.html
--------------------------------------------------------------------------------
/2017/day17/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2017/day18/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 18
2 |
3 | https://adventofcode.com/2017/day/18
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day18/index.html
--------------------------------------------------------------------------------
/2017/day18/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/2017/day19/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 19
2 |
3 | https://adventofcode.com/2017/day/19
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day19/index.html
--------------------------------------------------------------------------------
/2017/day19/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2017/day20/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 20
2 |
3 | https://adventofcode.com/2017/day/20
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day20/index.html
--------------------------------------------------------------------------------
/2017/day20/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2017/day21/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 21
2 |
3 | https://adventofcode.com/2017/day/21
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day21/index.html
--------------------------------------------------------------------------------
/2017/day21/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2017/day22/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 22
2 |
3 | https://adventofcode.com/2017/day/22
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day22/index.html
--------------------------------------------------------------------------------
/2017/day22/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2017/day23/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 23
2 |
3 | https://adventofcode.com/2017/day/23
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day23/index.html
--------------------------------------------------------------------------------
/2017/day23/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/2017/day23/program.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2017/day23/script.js:
--------------------------------------------------------------------------------
1 | // just part 1 here, for part 2 check program.js
2 |
3 | console.log(new Computer().load(input).run().special);
4 |
--------------------------------------------------------------------------------
/2017/day24/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 24
2 |
3 | https://adventofcode.com/2017/day/24
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day24/index.html
--------------------------------------------------------------------------------
/2017/day24/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2017/day25/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 25
2 |
3 | https://adventofcode.com/2017/day/25
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day25/index.html
--------------------------------------------------------------------------------
/2017/day25/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2017/day3/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 3
2 |
3 | https://adventofcode.com/2017/day/3
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day3/index.html
--------------------------------------------------------------------------------
/2017/day3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | :
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2017/day4/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 4
2 |
3 | https://adventofcode.com/2017/day/4
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day4/index.html
--------------------------------------------------------------------------------
/2017/day4/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2017/day4/script.js:
--------------------------------------------------------------------------------
1 | const arrayCmp = (a, b) => a.length === b.length && a.every(v => b.includes(v))
2 | const validate = (cmpFnc) => input.split('\n').filter(line => {
3 | let tmp = line.split(' ');
4 | return !tmp.some((a, i) => tmp.some((b, j) => cmpFnc(a, b) && i !== j))
5 | }).length
6 |
7 | console.log('p1', validate((a, b) => a === b));
8 | console.log('p2', validate((a, b) => arrayCmp(a.split(''), b.split(''))));
--------------------------------------------------------------------------------
/2017/day5/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 5
2 |
3 | https://adventofcode.com/2017/day/5
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day5/index.html
--------------------------------------------------------------------------------
/2017/day5/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2017/day6/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 6
2 |
3 | https://adventofcode.com/2017/day/6
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day6/index.html
--------------------------------------------------------------------------------
/2017/day6/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2017/day7/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 7
2 |
3 | https://adventofcode.com/2017/day/7
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day7/index.html
--------------------------------------------------------------------------------
/2017/day7/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2017/day8/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 8
2 |
3 | https://adventofcode.com/2017/day/8
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day8/index.html
--------------------------------------------------------------------------------
/2017/day8/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2017/day9/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2017 - Day 9
2 |
3 | https://adventofcode.com/2017/day/9
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2017/day9/index.html
--------------------------------------------------------------------------------
/2017/day9/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2017
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2018/.gitignore:
--------------------------------------------------------------------------------
1 | /*.js
2 | /*.html
--------------------------------------------------------------------------------
/2018/day10/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 10
2 |
3 | https://adventofcode.com/2018/day/10
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day10/index.html
--------------------------------------------------------------------------------
/2018/day11/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 11
2 |
3 | https://adventofcode.com/2018/day/11
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day11/index.html
--------------------------------------------------------------------------------
/2018/day11/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2018
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/2018/day12/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 12
2 |
3 | https://adventofcode.com/2018/day/12
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day12/index.html
--------------------------------------------------------------------------------
/2018/day12/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2018
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2018/day13/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 13
2 |
3 | https://adventofcode.com/2018/day/13
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day13/index.html
8 |
9 | Cart icons by Xenodora.
10 |
11 | [Video of the solution](https://www.youtube.com/watch?v=EbqQjZ1Yy5M)
12 |
13 | 
14 |
--------------------------------------------------------------------------------
/2018/day13/cart-left-right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2018/day13/cart-left-right.png
--------------------------------------------------------------------------------
/2018/day13/cart-top-bottom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2018/day13/cart-top-bottom.png
--------------------------------------------------------------------------------
/2018/day13/rails.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2018/day13/rails.png
--------------------------------------------------------------------------------
/2018/day14/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 14
2 |
3 | https://adventofcode.com/2018/day/14
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day14/index.html
--------------------------------------------------------------------------------
/2018/day14/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2018
7 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/2018/day15/elf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2018/day15/elf.png
--------------------------------------------------------------------------------
/2018/day15/goblin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2018/day15/goblin.png
--------------------------------------------------------------------------------
/2018/day16/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 16
2 |
3 | https://adventofcode.com/2018/day/16
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day16/index.html
--------------------------------------------------------------------------------
/2018/day16/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2018
6 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/2018/day17/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 17
2 |
3 | https://adventofcode.com/2018/day/17
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day17/index.html
8 |
9 | [Video of the solution](https://www.youtube.com/watch?v=rqz1g5tkiZw)
10 |
11 | 
12 |
--------------------------------------------------------------------------------
/2018/day18/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 18
2 |
3 | https://adventofcode.com/2018/day/18
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day18/index.html
--------------------------------------------------------------------------------
/2018/day18/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2018
6 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/2018/day19/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 19
2 |
3 | https://adventofcode.com/2018/day/19
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day19/index.html
--------------------------------------------------------------------------------
/2018/day19/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2018
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2018/day20/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 20
2 |
3 | https://adventofcode.com/2018/day/20
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day20/index.html
--------------------------------------------------------------------------------
/2018/day20/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2018
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2018/day20/tree.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2018
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2018/day21/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 21
2 |
3 | https://adventofcode.com/2018/day/21
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day21/index.html
--------------------------------------------------------------------------------
/2018/day21/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2018
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2018/day21/program.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2018
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2018/day22/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 22
2 |
3 | https://adventofcode.com/2018/day/22
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day22/index.html
--------------------------------------------------------------------------------
/2018/day22/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2018
7 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/2018/day23/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 23
2 |
3 | https://adventofcode.com/2018/day/23
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day23/index.html
--------------------------------------------------------------------------------
/2018/day23/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2018
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2018/day24/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 24
2 |
3 | https://adventofcode.com/2018/day/24
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day24/index.html
--------------------------------------------------------------------------------
/2018/day25/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 25
2 |
3 | https://adventofcode.com/2018/day/25
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day25/index.html
--------------------------------------------------------------------------------
/2018/day25/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2018
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/2018/day3/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 3
2 |
3 | https://adventofcode.com/2018/day/3
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day3/index.html
--------------------------------------------------------------------------------
/2018/day3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2018
6 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/2018/day4/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 4
2 |
3 | https://adventofcode.com/2018/day/4
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day4/index.html
--------------------------------------------------------------------------------
/2018/day4/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2018
6 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/2018/day5/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 5
2 |
3 | https://adventofcode.com/2018/day/5
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day5/index.html
--------------------------------------------------------------------------------
/2018/day5/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2018
6 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/2018/day6/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 6
2 |
3 | https://adventofcode.com/2018/day/6
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day6/index.html
--------------------------------------------------------------------------------
/2018/day6/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2018
6 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/2018/day7/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 7
2 |
3 | https://adventofcode.com/2018/day/7
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day7/index.html
--------------------------------------------------------------------------------
/2018/day7/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2018
6 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/2018/day8/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 8
2 |
3 | https://adventofcode.com/2018/day/8
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day8/index.html
--------------------------------------------------------------------------------
/2018/day8/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2018
6 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/2018/day9/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2018 - Day 9
2 |
3 | https://adventofcode.com/2018/day/9
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2018/day9/index.html
--------------------------------------------------------------------------------
/2018/day9/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2018
7 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/2019/.gitignore:
--------------------------------------------------------------------------------
1 | /*.js
2 | /*.html
--------------------------------------------------------------------------------
/2019/day1/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 1
2 |
3 | https://adventofcode.com/2019/day/1
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day1/index.html
--------------------------------------------------------------------------------
/2019/day1/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2019
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2019/day1/script.js:
--------------------------------------------------------------------------------
1 | const fuel = mass => Math.max(0, Math.floor(mass/3) - 2);
2 |
3 | const fuel2 = (mass, res = fuel(mass)) => res + (fuel(res) > 0 ? fuel2(res) : 0);
4 |
5 | let data = input.split('\n').map(Number);
6 |
7 | console.log('p1', data.map(v => fuel(v)).reduce((a, v) => a+v, 0));
8 | console.log('p2', data.map(v => fuel2(v)).reduce((a, v) => a+v, 0));
--------------------------------------------------------------------------------
/2019/day10/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 10
2 |
3 | https://adventofcode.com/2019/day/10
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day10/index.html
--------------------------------------------------------------------------------
/2019/day10/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2019
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2019/day11/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 11
2 |
3 | https://adventofcode.com/2019/day/11
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day11/index.html
--------------------------------------------------------------------------------
/2019/day12/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 12
2 |
3 | https://adventofcode.com/2019/day/12
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day12/index.html
--------------------------------------------------------------------------------
/2019/day13/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 13
2 |
3 | https://adventofcode.com/2019/day/13
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day13/index.html
8 |
9 | 
--------------------------------------------------------------------------------
/2019/day14/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 14
2 |
3 | https://adventofcode.com/2019/day/14
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day14/index.html
--------------------------------------------------------------------------------
/2019/day14/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2019
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2019/day15/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 15
2 |
3 | https://adventofcode.com/2019/day/15
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day15/index.html
8 |
9 | [Video of the solution](https://www.youtube.com/watch?v=qzYAOrm-Qsw)
10 |
11 | 
12 |
--------------------------------------------------------------------------------
/2019/day15/unknown_bot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2019/day15/unknown_bot.png
--------------------------------------------------------------------------------
/2019/day16/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 16
2 |
3 | https://adventofcode.com/2019/day/16
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day16/index.html
--------------------------------------------------------------------------------
/2019/day16/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2019
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2019/day17/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 17
2 |
3 | https://adventofcode.com/2019/day/17
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day17/index.html
--------------------------------------------------------------------------------
/2019/day18/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 18
2 |
3 | https://adventofcode.com/2019/day/18
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day18/index.html
--------------------------------------------------------------------------------
/2019/day18/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2019
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2019/day19/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 19
2 |
3 | https://adventofcode.com/2019/day/19
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day19/index.html
--------------------------------------------------------------------------------
/2019/day2/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 2
2 |
3 | https://adventofcode.com/2019/day/2
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day2/index.html
--------------------------------------------------------------------------------
/2019/day2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2019
7 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/2019/day20/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 20
2 |
3 | https://adventofcode.com/2019/day/20
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day20/index.html
--------------------------------------------------------------------------------
/2019/day21/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 21
2 |
3 | https://adventofcode.com/2019/day/21
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day21/index.html
8 |
--------------------------------------------------------------------------------
/2019/day22/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Advent of Code 2019 - Day 22
3 |
4 | https://adventofcode.com/2019/day/22
5 |
6 | JavaScript implementation
7 |
8 | Check it live at https://surgi1.github.io/adventofcode/2019/day22/index.html
9 |
--------------------------------------------------------------------------------
/2019/day22/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2019
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2019/day23/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 23
2 |
3 | https://adventofcode.com/2019/day/23
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day23/index.html
8 |
--------------------------------------------------------------------------------
/2019/day24/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 24
2 |
3 | https://adventofcode.com/2019/day/24
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day24/index.html
8 |
--------------------------------------------------------------------------------
/2019/day24/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2019
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2019/day25/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Advent of Code 2019 - Day 25
3 |
4 | https://adventofcode.com/2019/day/25
5 |
6 | JavaScript implementation
7 |
8 | Check it live at https://surgi1.github.io/adventofcode/2019/day25/index.html
9 |
10 | 
11 |
--------------------------------------------------------------------------------
/2019/day3/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 3
2 |
3 | https://adventofcode.com/2019/day/3
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day3/index.html
--------------------------------------------------------------------------------
/2019/day3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2019
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2019/day4/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 4
2 |
3 | https://adventofcode.com/2019/day/4
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day4/index.html
--------------------------------------------------------------------------------
/2019/day4/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2019
7 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/2019/day5/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 5
2 |
3 | https://adventofcode.com/2019/day/5
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day5/index.html
--------------------------------------------------------------------------------
/2019/day5/script.js:
--------------------------------------------------------------------------------
1 | const ids = {
2 | ac: 1,
3 | trc: 5
4 | }
5 |
6 | let comp = new Computer();
7 |
8 | comp.load(input);
9 |
10 | console.log(comp.run(ids.ac)); // part1
11 | comp.reset();
12 | console.log(comp.run(ids.trc)); // part2
13 |
--------------------------------------------------------------------------------
/2019/day6/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 6
2 |
3 | https://adventofcode.com/2019/day/6
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day6/index.html
--------------------------------------------------------------------------------
/2019/day6/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2019
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2019/day7/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 7
2 |
3 | https://adventofcode.com/2019/day/7
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day7/index.html
--------------------------------------------------------------------------------
/2019/day8/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 8
2 |
3 | https://adventofcode.com/2019/day/8
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day8/index.html
--------------------------------------------------------------------------------
/2019/day8/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | AOC 2019
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2019/day9/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2019 - Day 9
2 |
3 | https://adventofcode.com/2019/day/9
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2019/day9/index.html
--------------------------------------------------------------------------------
/2019/day9/script.js:
--------------------------------------------------------------------------------
1 | let comp = new Computer();
2 |
3 | //comp.load([109,1,204,-1,1001,100,1,100,1008,100,16,101,1006,101,0,99]);
4 | //comp.load([1102,34915192,34915192,7,4,7,99,0]);
5 |
6 | comp.load(input);
7 |
8 | console.log(comp.run([2]));
--------------------------------------------------------------------------------
/2020/day1/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 1
2 |
3 | https://adventofcode.com/2020/day/1
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day1/index.html
--------------------------------------------------------------------------------
/2020/day1/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 1
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2020/day1/script.js:
--------------------------------------------------------------------------------
1 | for (i1 = 0; i1 < arr.length; i1++) {
2 | for (i2 = i1+1; i2 < arr.length; i2++) {
3 | if (arr[i1]+arr[i2] == 2020) console.log('part 1', arr[i1]*arr[i2]);
4 | for (i3 = i2+1; i3 < arr.length; i3++) {
5 | if (arr[i1]+arr[i2]+arr[i3] == 2020) console.log('part 2', arr[i1]*arr[i2]*arr[i3]);
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/2020/day10/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 10
2 |
3 | https://adventofcode.com/2020/day/10
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day10/index.html
--------------------------------------------------------------------------------
/2020/day10/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 10
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2020/day11/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 11
2 |
3 | https://adventofcode.com/2020/day/11
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day11/index.html
--------------------------------------------------------------------------------
/2020/day11/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 11
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2020/day12/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 12
2 |
3 | https://adventofcode.com/2020/day/12
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day12/index.html
--------------------------------------------------------------------------------
/2020/day12/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 12
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2020/day13/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 13
2 |
3 | https://adventofcode.com/2020/day/13
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day13/index.html
--------------------------------------------------------------------------------
/2020/day13/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 13
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2020/day14/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 14
2 |
3 | https://adventofcode.com/2020/day/14
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day14/index.html
--------------------------------------------------------------------------------
/2020/day14/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 14
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2020/day15/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 15
2 |
3 | https://adventofcode.com/2020/day/15
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day15/index.html
--------------------------------------------------------------------------------
/2020/day15/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 15
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2020/day16/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 16
2 |
3 | https://adventofcode.com/2020/day/16
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day16/index.html
--------------------------------------------------------------------------------
/2020/day16/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 16
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2020/day17/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 17
2 |
3 | https://adventofcode.com/2020/day/17
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day17/index.html
--------------------------------------------------------------------------------
/2020/day17/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 17
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2020/day18/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 18
2 |
3 | https://adventofcode.com/2020/day/18
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day18/index.html
--------------------------------------------------------------------------------
/2020/day18/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 18
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2020/day19/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 19
2 |
3 | https://adventofcode.com/2020/day/19
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day19/index.html
--------------------------------------------------------------------------------
/2020/day19/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 19
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2020/day2/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 2
2 |
3 | https://adventofcode.com/2020/day/2
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day2/index.html
--------------------------------------------------------------------------------
/2020/day2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 2
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2020/day20/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 20
2 |
3 | https://adventofcode.com/2020/day/20
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day20/index.html
8 |
9 | 
10 |
--------------------------------------------------------------------------------
/2020/day21/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 21
2 |
3 | https://adventofcode.com/2020/day/21
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day21/index.html
--------------------------------------------------------------------------------
/2020/day21/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 21
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2020/day22/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 22
2 |
3 | https://adventofcode.com/2020/day/22
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day22/index.html
--------------------------------------------------------------------------------
/2020/day22/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 22
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2020/day23/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 23
2 |
3 | https://adventofcode.com/2020/day/23
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day23/index.html
--------------------------------------------------------------------------------
/2020/day23/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 23
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2020/day24/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 24
2 |
3 | https://adventofcode.com/2020/day/24
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day24/index.html
--------------------------------------------------------------------------------
/2020/day24/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 24
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2020/day25/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 25
2 |
3 | https://adventofcode.com/2020/day/25
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day25/index.html
--------------------------------------------------------------------------------
/2020/day25/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 25
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2020/day3/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 3
2 |
3 | https://adventofcode.com/2020/day/3
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day3/index.html
--------------------------------------------------------------------------------
/2020/day3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 3
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2020/day4/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 4
2 |
3 | https://adventofcode.com/2020/day/4
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day4/index.html
--------------------------------------------------------------------------------
/2020/day4/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 4
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2020/day5/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 5
2 |
3 | https://adventofcode.com/2020/day/5
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day5/index.html
--------------------------------------------------------------------------------
/2020/day5/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 5
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2020/day5/script.js:
--------------------------------------------------------------------------------
1 | let min = Math.min(...data),
2 | max = Math.max(...data);
3 |
4 | console.log('part 1', max);
5 | console.log('part 2', data.filter(a => a > min && a < max && !data.includes(a+1))[0]+1);
--------------------------------------------------------------------------------
/2020/day6/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 6
2 |
3 | https://adventofcode.com/2020/day/6
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day6/index.html
--------------------------------------------------------------------------------
/2020/day6/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 6
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2020/day7/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 7
2 |
3 | https://adventofcode.com/2020/day/7
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day7/index.html
--------------------------------------------------------------------------------
/2020/day7/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 7
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2020/day8/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 8
2 |
3 | https://adventofcode.com/2020/day/8
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day8/index.html
--------------------------------------------------------------------------------
/2020/day8/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 8
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2020/day9/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2020 - Day 9
2 |
3 | https://adventofcode.com/2020/day/9
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2020/day9/index.html
--------------------------------------------------------------------------------
/2020/day9/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2020 - Day 9
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2021/day1/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 1
2 |
3 | https://adventofcode.com/2021/day/1
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day1/index.html
--------------------------------------------------------------------------------
/2021/day1/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 1
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day1/script.js:
--------------------------------------------------------------------------------
1 | const compute = a => a.reduce((r, v, i) => r += (i > 0 && v > a[i-1]), 0)
2 | const map2Thrices = a => a.map((v, i) => i < a.length-2 ? v+a[i+1]+a[i+2] : 0)
3 |
4 | console.log(compute(input));
5 | console.log(compute(map2Thrices(input)));
--------------------------------------------------------------------------------
/2021/day10/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 10
2 |
3 | https://adventofcode.com/2021/day/10
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day10/index.html
--------------------------------------------------------------------------------
/2021/day10/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 10
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day11/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 11
2 |
3 | https://adventofcode.com/2021/day/11
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day11/index.html
--------------------------------------------------------------------------------
/2021/day11/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 11
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day12/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 12
2 |
3 | https://adventofcode.com/2021/day/12
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day12/index.html
--------------------------------------------------------------------------------
/2021/day12/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 12
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day13/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 13
2 |
3 | https://adventofcode.com/2021/day/13
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day13/index.html
--------------------------------------------------------------------------------
/2021/day13/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 13
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day14/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 14
2 |
3 | https://adventofcode.com/2021/day/14
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day14/index.html
--------------------------------------------------------------------------------
/2021/day14/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 14
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day15/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 15
2 |
3 | https://adventofcode.com/2021/day/15
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day15/index.html
--------------------------------------------------------------------------------
/2021/day15/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 15
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day16/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 16
2 |
3 | https://adventofcode.com/2021/day/16
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day16/index.html
--------------------------------------------------------------------------------
/2021/day16/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 16
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day17/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 17
2 |
3 | https://adventofcode.com/2021/day/17
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day17/index.html
--------------------------------------------------------------------------------
/2021/day17/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 17
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/2021/day18/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 18
2 |
3 | https://adventofcode.com/2021/day/18
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day18/index.html
--------------------------------------------------------------------------------
/2021/day18/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 18
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2021/day18/script.js:
--------------------------------------------------------------------------------
1 | const part1 = (t = new FishTree()) => input.map(t.arm).pop()
2 | const part2 = () => input.map((i,n) => input.filter((j,m) => n-m).map(j => new FishTree(j).arm(i)))
3 |
4 | console.log(part1());
5 | console.log(Math.max(...part2().flat()));
--------------------------------------------------------------------------------
/2021/day19/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 19
2 |
3 | https://adventofcode.com/2021/day/19
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day19/index.html
--------------------------------------------------------------------------------
/2021/day19/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 19
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day2/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 2
2 |
3 | https://adventofcode.com/2021/day/2
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day2/index.html
--------------------------------------------------------------------------------
/2021/day2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 2
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day20/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 20
2 |
3 | https://adventofcode.com/2021/day/20
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day20/index.html
--------------------------------------------------------------------------------
/2021/day20/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 20
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day21/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 21
2 |
3 | https://adventofcode.com/2021/day/21
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day21/index.html
--------------------------------------------------------------------------------
/2021/day21/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 21
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/2021/day22/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 22
2 |
3 | https://adventofcode.com/2021/day/22
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day22/index.html
--------------------------------------------------------------------------------
/2021/day22/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 22
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day23/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 23
2 |
3 | https://adventofcode.com/2021/day/23
4 |
5 | JavaScript implementation
6 |
7 | Check it live as a highly addictive game here: https://surgi1.github.io/adventofcode/2021/day23/index.game.html
8 |
9 | 
--------------------------------------------------------------------------------
/2021/day23/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 23
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day23/modules/baseDOM.js:
--------------------------------------------------------------------------------
1 | const id = k => document.getElementById(k);
2 | const all = k => document.querySelectorAll(k);
3 |
4 | export { id, all }
--------------------------------------------------------------------------------
/2021/day23/modules/prefix.js:
--------------------------------------------------------------------------------
1 | const storagePrefix = {
2 | SCORE: 'troopahs__best_cost_',
3 | LOWEST_REACHED: 'troopahs__lowest_reached_',
4 | CUSTOM_INPUTS: 'troopahs__custom_inputs_'
5 | }
6 |
7 | export { storagePrefix }
--------------------------------------------------------------------------------
/2021/day23/modules/vect.js:
--------------------------------------------------------------------------------
1 | const eqVect = (a, b) => a && b && a.x == b.x && a.y == b.y;
2 |
3 | export { eqVect }
--------------------------------------------------------------------------------
/2021/day23/resources/applause.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2021/day23/resources/applause.mp3
--------------------------------------------------------------------------------
/2021/day23/resources/bigApplause.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2021/day23/resources/bigApplause.mp3
--------------------------------------------------------------------------------
/2021/day23/resources/energyicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2021/day23/resources/energyicon.png
--------------------------------------------------------------------------------
/2021/day23/resources/mb-body.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2021/day23/resources/mb-body.png
--------------------------------------------------------------------------------
/2021/day23/resources/mb-bottom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2021/day23/resources/mb-bottom.png
--------------------------------------------------------------------------------
/2021/day23/resources/mb-top.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2021/day23/resources/mb-top.png
--------------------------------------------------------------------------------
/2021/day23/resources/sndonoff.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2021/day23/resources/sndonoff.png
--------------------------------------------------------------------------------
/2021/day23/resources/spritesheet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2021/day23/resources/spritesheet.png
--------------------------------------------------------------------------------
/2021/day23/resources/steps.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2021/day23/resources/steps.mp3
--------------------------------------------------------------------------------
/2021/day23/resources/stripebg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2021/day23/resources/stripebg.png
--------------------------------------------------------------------------------
/2021/day23/script.js:
--------------------------------------------------------------------------------
1 | const solver = new Worker('./worker.js');
2 |
3 | solver.onmessage = e => {
4 | console.log('Solution', e.data);
5 | }
6 |
7 | solver.postMessage(baseInputs[1]);
8 |
9 | let inputArr = baseInputs[1].split("\n");
10 | inputArr.splice(3, 0,' #D#C#B#A# ',' #D#B#A#C# ');
11 |
12 | solver.postMessage(inputArr.join("\n"));
13 |
--------------------------------------------------------------------------------
/2021/day24/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 24
2 |
3 | https://adventofcode.com/2021/day/24
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day24/index.html
--------------------------------------------------------------------------------
/2021/day24/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 24
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/2021/day25/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 25
2 |
3 | https://adventofcode.com/2021/day/25
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day25/index.html
8 |
9 | 
--------------------------------------------------------------------------------
/2021/day3/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 3
2 |
3 | https://adventofcode.com/2021/day/3
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day3/index.html
--------------------------------------------------------------------------------
/2021/day3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 3
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day4/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 4
2 |
3 | https://adventofcode.com/2021/day/4
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day4/index.html
--------------------------------------------------------------------------------
/2021/day4/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 4
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day5/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 5
2 |
3 | https://adventofcode.com/2021/day/5
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day5/index.html
--------------------------------------------------------------------------------
/2021/day5/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 5
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day6/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 6
2 |
3 | https://adventofcode.com/2021/day/6
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day6/index.html
--------------------------------------------------------------------------------
/2021/day6/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 6
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day6/script.js:
--------------------------------------------------------------------------------
1 | const run = (rounds, counts = Array(9).fill(0)) => {
2 | input.split(',').map(t => counts[Number(t)]++);
3 |
4 | while (rounds--) {
5 | let former0 = counts.shift();
6 | counts[6] += former0;
7 | counts[8] = former0;
8 | };
9 |
10 | return counts.reduce((a, c) => a+c);
11 | }
12 |
13 | console.log(run(80));
14 | console.log(run(256));
--------------------------------------------------------------------------------
/2021/day7/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 7
2 |
3 | https://adventofcode.com/2021/day/7
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day7/index.html
--------------------------------------------------------------------------------
/2021/day7/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 7
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day7/script.js:
--------------------------------------------------------------------------------
1 | const alignCrabs = (progressive = false) => {
2 | const dist = d => progressive ? d*(d+1)/2 : d
3 | let crabs = input.split(',').map(Number), max = Math.max(...crabs), res = Number.MAX_SAFE_INTEGER;
4 | while (max--) res = Math.min(res, crabs.reduce((a, c) => a+dist(Math.abs(c-max)), 0))
5 | return res;
6 | }
7 |
8 | console.log(alignCrabs()); // aligned to median height
9 | console.log(alignCrabs(true));
--------------------------------------------------------------------------------
/2021/day8/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 8
2 |
3 | https://adventofcode.com/2021/day/8
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day8/index.html
--------------------------------------------------------------------------------
/2021/day8/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 8
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2021/day9/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2021 - Day 9
2 |
3 | https://adventofcode.com/2021/day/9
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2021/day9/index.html
--------------------------------------------------------------------------------
/2021/day9/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2021 - Day 9
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day1/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 1
2 |
3 | https://adventofcode.com/2022/day/1
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day1/index.html
--------------------------------------------------------------------------------
/2022/day1/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 1
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day1/script.js:
--------------------------------------------------------------------------------
1 | const compute = len => input.split("\n\n")
2 | .map(e => e.split("\n").map(Number).reduce((a, c) => a+c, 0))
3 | .sort((a, b) => b-a).slice(0, len).reduce((a, c) => a+c, 0);
4 |
5 | console.log(compute(1));
6 | console.log(compute(3));
7 |
--------------------------------------------------------------------------------
/2022/day10/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 10
2 |
3 | https://adventofcode.com/2022/day/10
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day10/index.html
--------------------------------------------------------------------------------
/2022/day10/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 10
6 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/2022/day11/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 11
2 |
3 | https://adventofcode.com/2022/day/11
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day11/index.html
--------------------------------------------------------------------------------
/2022/day11/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 11
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day12/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 12
2 |
3 | https://adventofcode.com/2022/day/12
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day12/index.html
--------------------------------------------------------------------------------
/2022/day12/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 12
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day13/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 13
2 |
3 | https://adventofcode.com/2022/day/13
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day13/index.html
--------------------------------------------------------------------------------
/2022/day13/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 13
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day14/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 14
2 |
3 | https://adventofcode.com/2022/day/14
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day14/index.anim.html
8 |
9 | 
--------------------------------------------------------------------------------
/2022/day14/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 14
6 |
7 |
8 | Animated version is here!
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2022/day15/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 15
2 |
3 | https://adventofcode.com/2022/day/15
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day15/index.html
8 |
--------------------------------------------------------------------------------
/2022/day15/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 15
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day16/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 16
2 |
3 | https://adventofcode.com/2022/day/16
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day16/index.html
8 |
--------------------------------------------------------------------------------
/2022/day16/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 16
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day17/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 17
2 |
3 | https://adventofcode.com/2022/day/17
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day17/index.html
8 |
--------------------------------------------------------------------------------
/2022/day17/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 17
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day18/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 18
2 |
3 | https://adventofcode.com/2022/day/18
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day18/index.html
8 |
--------------------------------------------------------------------------------
/2022/day18/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 18
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day19/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 19
2 |
3 | https://adventofcode.com/2022/day/19
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day19/index.html
8 |
--------------------------------------------------------------------------------
/2022/day19/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 19
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day2/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 2
2 |
3 | https://adventofcode.com/2022/day/2
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day2/index.html
--------------------------------------------------------------------------------
/2022/day2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 2
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day20/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 20
2 |
3 | https://adventofcode.com/2022/day/20
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day20/index.html
8 |
--------------------------------------------------------------------------------
/2022/day20/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 20
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day21/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 21
2 |
3 | https://adventofcode.com/2022/day/21
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day21/index.html
8 |
--------------------------------------------------------------------------------
/2022/day21/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 21
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day22/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 22
2 |
3 | https://adventofcode.com/2022/day/22
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day22/index.html
8 |
9 | 
--------------------------------------------------------------------------------
/2022/day22/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 22
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day23/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 23
2 |
3 | https://adventofcode.com/2022/day/23
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day23/index.html
8 |
9 | Icons made by [@JoeCreates](https://twitter.com/joecreates)
10 |
11 | 
--------------------------------------------------------------------------------
/2022/day23/elf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day23/elf.png
--------------------------------------------------------------------------------
/2022/day24/elf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/elf.png
--------------------------------------------------------------------------------
/2022/day24/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 24
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day24/resources/Grue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/Grue.png
--------------------------------------------------------------------------------
/2022/day24/resources/GrueBloody.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/GrueBloody.png
--------------------------------------------------------------------------------
/2022/day24/resources/GrueBloodyGrin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/GrueBloodyGrin.png
--------------------------------------------------------------------------------
/2022/day24/resources/GrueGrin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/GrueGrin.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/BELT_leather.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/BELT_leather.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/BELT_rope.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/BELT_rope.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/BODY_male.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/BODY_male.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/BODY_skeleton.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/BODY_skeleton.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/FEET_plate_armor_shoes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/FEET_plate_armor_shoes.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/FEET_shoes_brown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/FEET_shoes_brown.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/HANDS_plate_armor_gloves.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/HANDS_plate_armor_gloves.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/HEAD_chain_armor_helmet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/HEAD_chain_armor_helmet.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/HEAD_chain_armor_hood.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/HEAD_chain_armor_hood.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/HEAD_hair_blonde.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/HEAD_hair_blonde.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/HEAD_leather_armor_hat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/HEAD_leather_armor_hat.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/HEAD_plate_armor_helmet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/HEAD_plate_armor_helmet.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/HEAD_robe_hood.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/HEAD_robe_hood.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/LEGS_pants_greenish.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/LEGS_pants_greenish.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/LEGS_plate_armor_pants.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/LEGS_plate_armor_pants.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/LEGS_robe_skirt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/LEGS_robe_skirt.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/TORSO_chain_armor_jacket_purple.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/TORSO_chain_armor_jacket_purple.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/TORSO_chain_armor_torso.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/TORSO_chain_armor_torso.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/TORSO_leather_armor_bracers.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/TORSO_leather_armor_bracers.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/TORSO_leather_armor_shirt_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/TORSO_leather_armor_shirt_white.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/TORSO_leather_armor_shoulders.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/TORSO_leather_armor_shoulders.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/TORSO_leather_armor_torso.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/TORSO_leather_armor_torso.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/TORSO_plate_armor_arms_shoulders.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/TORSO_plate_armor_arms_shoulders.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/TORSO_plate_armor_torso.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/TORSO_plate_armor_torso.png
--------------------------------------------------------------------------------
/2022/day24/resources/hurt/TORSO_robe_shirt_brown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/hurt/TORSO_robe_shirt_brown.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/BELT_leather.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/BELT_leather.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/BELT_rope.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/BELT_rope.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/BODY_male.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/BODY_male.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/BODY_skeleton.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/BODY_skeleton.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/FEET_plate_armor_shoes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/FEET_plate_armor_shoes.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/FEET_shoes_brown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/FEET_shoes_brown.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/HANDS_plate_armor_gloves.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/HANDS_plate_armor_gloves.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/HEAD_chain_armor_helmet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/HEAD_chain_armor_helmet.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/HEAD_chain_armor_hood.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/HEAD_chain_armor_hood.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/HEAD_hair_blonde.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/HEAD_hair_blonde.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/HEAD_leather_armor_hat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/HEAD_leather_armor_hat.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/HEAD_plate_armor_helmet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/HEAD_plate_armor_helmet.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/HEAD_robe_hood.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/HEAD_robe_hood.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/LEGS_pants_greenish.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/LEGS_pants_greenish.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/LEGS_plate_armor_pants.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/LEGS_plate_armor_pants.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/LEGS_robe_skirt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/LEGS_robe_skirt.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/TORSO_chain_armor_jacket_purple.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/TORSO_chain_armor_jacket_purple.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/TORSO_chain_armor_torso.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/TORSO_chain_armor_torso.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/TORSO_leather_armor_bracers.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/TORSO_leather_armor_bracers.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/TORSO_leather_armor_shirt_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/TORSO_leather_armor_shirt_white.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/TORSO_leather_armor_shoulders.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/TORSO_leather_armor_shoulders.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/TORSO_leather_armor_torso.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/TORSO_leather_armor_torso.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/TORSO_plate_armor_arms_shoulders.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/TORSO_plate_armor_arms_shoulders.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/TORSO_plate_armor_torso.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/TORSO_plate_armor_torso.png
--------------------------------------------------------------------------------
/2022/day24/resources/spellcast/TORSO_robe_shirt_brown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spellcast/TORSO_robe_shirt_brown.png
--------------------------------------------------------------------------------
/2022/day24/resources/spritesheet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/spritesheet.png
--------------------------------------------------------------------------------
/2022/day24/resources/terrain_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/terrain_3.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/BELT_leather.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/BELT_leather.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/BELT_rope.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/BELT_rope.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/BODY_male.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/BODY_male.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/BODY_skeleton.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/BODY_skeleton.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/FEET_plate_armor_shoes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/FEET_plate_armor_shoes.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/FEET_shoes_brown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/FEET_shoes_brown.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/HANDS_plate_armor_gloves.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/HANDS_plate_armor_gloves.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/HEAD_chain_armor_helmet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/HEAD_chain_armor_helmet.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/HEAD_chain_armor_hood.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/HEAD_chain_armor_hood.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/HEAD_hair_blonde.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/HEAD_hair_blonde.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/HEAD_leather_armor_hat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/HEAD_leather_armor_hat.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/HEAD_plate_armor_helmet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/HEAD_plate_armor_helmet.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/HEAD_robe_hood.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/HEAD_robe_hood.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/LEGS_pants_greenish.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/LEGS_pants_greenish.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/LEGS_plate_armor_pants.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/LEGS_plate_armor_pants.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/LEGS_robe_skirt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/LEGS_robe_skirt.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/TORSO_chain_armor_jacket_purple.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/TORSO_chain_armor_jacket_purple.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/TORSO_chain_armor_torso.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/TORSO_chain_armor_torso.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/TORSO_leather_armor_bracers.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/TORSO_leather_armor_bracers.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/TORSO_leather_armor_shirt_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/TORSO_leather_armor_shirt_white.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/TORSO_leather_armor_shoulders.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/TORSO_leather_armor_shoulders.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/TORSO_leather_armor_torso.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/TORSO_leather_armor_torso.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/TORSO_plate_armor_arms_shoulders.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/TORSO_plate_armor_arms_shoulders.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/TORSO_plate_armor_torso.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/TORSO_plate_armor_torso.png
--------------------------------------------------------------------------------
/2022/day24/resources/walk/TORSO_robe_shirt_brown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/resources/walk/TORSO_robe_shirt_brown.png
--------------------------------------------------------------------------------
/2022/day24/spritesheet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/2022/day24/spritesheet.png
--------------------------------------------------------------------------------
/2022/day25/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 25
2 |
3 | https://adventofcode.com/2022/day/25
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day25/index.html
8 |
--------------------------------------------------------------------------------
/2022/day25/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 25
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day3/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 3
2 |
3 | https://adventofcode.com/2022/day/3
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day3/index.html
--------------------------------------------------------------------------------
/2022/day3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 3
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day4/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 4
2 |
3 | https://adventofcode.com/2022/day/4
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day4/index.html
--------------------------------------------------------------------------------
/2022/day4/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 4
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day4/script.js:
--------------------------------------------------------------------------------
1 | let a = input.split("\n").map(l => l.split(',').map(i => i.split('-').map(Number)));
2 |
3 | console.log(a.filter(e => (e[0][0] >= e[1][0] && e[0][1] <= e[1][1]) || (e[1][0] >= e[0][0] && e[1][1] <= e[0][1]) ).length)
4 | console.log(a.filter(e => !(e[0][1] < e[1][0] || e[1][1] < e[0][0])).length)
--------------------------------------------------------------------------------
/2022/day5/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 5
2 |
3 | https://adventofcode.com/2022/day/5
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day5/index.html
--------------------------------------------------------------------------------
/2022/day5/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 5
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day6/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 6
2 |
3 | https://adventofcode.com/2022/day/6
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day6/index.html
--------------------------------------------------------------------------------
/2022/day6/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 6
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day6/script.js:
--------------------------------------------------------------------------------
1 | const compute = (a, len, res = 0) => {
2 | a.every((v, n) => !(new Set(a.slice(n, n+len)).size == len && (res = n+len)))
3 | return res;
4 | }
5 |
6 | console.log(compute(input.split(''), 4));
7 | console.log(compute(input.split(''), 14));
--------------------------------------------------------------------------------
/2022/day7/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 7
2 |
3 | https://adventofcode.com/2022/day/7
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day7/index.html
--------------------------------------------------------------------------------
/2022/day7/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 7
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day8/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 8
2 |
3 | https://adventofcode.com/2022/day/8
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day8/index.html
--------------------------------------------------------------------------------
/2022/day8/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 8
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2022/day9/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2022 - Day 9
2 |
3 | https://adventofcode.com/2022/day/9
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2022/day9/index.html
--------------------------------------------------------------------------------
/2022/day9/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2022 - Day 9
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day1/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 1
2 |
3 | https://adventofcode.com/2023/day/1
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day1/index.html
--------------------------------------------------------------------------------
/2023/day1/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 1
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day10/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 10
2 |
3 | https://adventofcode.com/2023/day/10
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day10/index.html
8 |
9 | 
--------------------------------------------------------------------------------
/2023/day10/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 10
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2023/day11/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 11
2 |
3 | https://adventofcode.com/2023/day/11
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day11/index.html
--------------------------------------------------------------------------------
/2023/day11/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 11
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day12/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 12
2 |
3 | https://adventofcode.com/2023/day/12
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day12/index.html
--------------------------------------------------------------------------------
/2023/day12/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 12
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day13/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 13
2 |
3 | https://adventofcode.com/2023/day/13
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day13/index.html
--------------------------------------------------------------------------------
/2023/day13/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 13
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day14/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 14
2 |
3 | https://adventofcode.com/2023/day/14
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day14/index.html
--------------------------------------------------------------------------------
/2023/day14/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 14
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day15/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 15
2 |
3 | https://adventofcode.com/2023/day/15
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day15/index.html
--------------------------------------------------------------------------------
/2023/day15/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 15
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day16/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 16
2 |
3 | https://adventofcode.com/2023/day/16
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day16/index.html
--------------------------------------------------------------------------------
/2023/day16/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 16
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day17/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 17
2 |
3 | https://adventofcode.com/2023/day/17
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day17/index.html
--------------------------------------------------------------------------------
/2023/day17/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 17
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/2023/day18/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 18
2 |
3 | https://adventofcode.com/2023/day/18
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day18/index.html
8 |
9 | 
--------------------------------------------------------------------------------
/2023/day18/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 18
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/2023/day19/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 19
2 |
3 | https://adventofcode.com/2023/day/19
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day19/index.html
8 |
9 | 
--------------------------------------------------------------------------------
/2023/day2/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 2
2 |
3 | https://adventofcode.com/2023/day/2
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day2/index.html
--------------------------------------------------------------------------------
/2023/day2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 2
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day20/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 20
2 |
3 | https://adventofcode.com/2023/day/20
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day20/index.html
--------------------------------------------------------------------------------
/2023/day20/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 20
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day21/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 21
2 |
3 | https://adventofcode.com/2023/day/21
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day21/index.html
--------------------------------------------------------------------------------
/2023/day21/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 21
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day22/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 22
2 |
3 | https://adventofcode.com/2023/day/22
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day22/index.html
8 |
9 | Animated version available at https://surgi1.github.io/adventofcode/2023/day22/index.anim.html
10 |
11 | 
--------------------------------------------------------------------------------
/2023/day22/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 22
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day22/input.sample.js:
--------------------------------------------------------------------------------
1 | let input = `1,0,1~1,2,1
2 | 0,0,2~2,0,2
3 | 0,2,3~2,2,3
4 | 0,0,4~0,2,4
5 | 2,0,5~2,2,5
6 | 0,1,6~2,1,6
7 | 1,1,8~1,1,9`;
8 |
--------------------------------------------------------------------------------
/2023/day23/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 23
2 |
3 | https://adventofcode.com/2023/day/23
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day23/index.html
--------------------------------------------------------------------------------
/2023/day23/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 23
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day24/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 24
2 |
3 | https://adventofcode.com/2023/day/24
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day24/index.html
8 |
9 | Animated version available at https://surgi1.github.io/adventofcode/2023/day24/index.anim.html
10 |
11 | 
--------------------------------------------------------------------------------
/2023/day24/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 24
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day24/input.sample.js:
--------------------------------------------------------------------------------
1 | let input = `19, 13, 30 @ -2, 1, -2
2 | 18, 19, 22 @ -1, -1, -2
3 | 20, 25, 34 @ -2, -2, -4
4 | 12, 31, 28 @ -1, -2, -1
5 | 20, 19, 15 @ 1, -5, -3`;
--------------------------------------------------------------------------------
/2023/day25/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 25
2 |
3 | https://adventofcode.com/2023/day/25
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day25/index.html
--------------------------------------------------------------------------------
/2023/day25/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 25
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day3/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 3
2 |
3 | https://adventofcode.com/2023/day/3
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day3/index.html
--------------------------------------------------------------------------------
/2023/day3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 3
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day4/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 4
2 |
3 | https://adventofcode.com/2023/day/4
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day4/index.html
--------------------------------------------------------------------------------
/2023/day4/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 4
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day5/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 5
2 |
3 | https://adventofcode.com/2023/day/5
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day5/index.html
--------------------------------------------------------------------------------
/2023/day5/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 5
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day6/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 6
2 |
3 | https://adventofcode.com/2023/day/6
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day6/index.html
--------------------------------------------------------------------------------
/2023/day6/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 6
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day7/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 7
2 |
3 | https://adventofcode.com/2023/day/7
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day7/index.html
--------------------------------------------------------------------------------
/2023/day7/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 7
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day8/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 8
2 |
3 | https://adventofcode.com/2023/day/8
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day8/index.html
--------------------------------------------------------------------------------
/2023/day8/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 8
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2023/day9/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2023 - Day 9
2 |
3 | https://adventofcode.com/2023/day/9
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2023/day9/index.html
--------------------------------------------------------------------------------
/2023/day9/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2023 - Day 9
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day1/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 1
2 |
3 | https://adventofcode.com/2024/day/1
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day1/index.html
--------------------------------------------------------------------------------
/2024/day1/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 1
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day1/script.js:
--------------------------------------------------------------------------------
1 | const init = input => input.split("\n").map(line => line.match(/\d+/g).map(Number));
2 |
3 | const run = (data, p1 = true) => {
4 | let cols = [0, 1].map(i => data.map(row => row[i]).sort((a, b) => a-b));
5 | return cols[0].reduce((res, v, i) => res + (p1 ? Math.abs(v-cols[1][i]) : v*cols[1].filter(n => n == v).length), 0);
6 | }
7 |
8 | console.log('p1', run(init(input)));
9 | console.log('p2', run(init(input), false));
10 |
--------------------------------------------------------------------------------
/2024/day10/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 10
2 |
3 | https://adventofcode.com/2024/day/10
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day10/index.html
--------------------------------------------------------------------------------
/2024/day10/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 10
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day11/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 11
2 |
3 | https://adventofcode.com/2024/day/11
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day11/index.html
--------------------------------------------------------------------------------
/2024/day11/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 11
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day12/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 12
2 |
3 | https://adventofcode.com/2024/day/12
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day12/index.html
--------------------------------------------------------------------------------
/2024/day12/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 12
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day13/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 13
2 |
3 | https://adventofcode.com/2024/day/13
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day13/index.html
--------------------------------------------------------------------------------
/2024/day13/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 13
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day14/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 14
2 |
3 | https://adventofcode.com/2024/day/14
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day14/index.html
8 |
9 | 
--------------------------------------------------------------------------------
/2024/day14/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 14
6 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/2024/day15/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 15
2 |
3 | https://adventofcode.com/2024/day/15
4 |
5 | JavaScript implementation
6 |
7 | Check it live as animated version at https://surgi1.github.io/adventofcode/2024/day15/index.anim.html - bring your input!
8 |
9 | Video of the solution: https://www.youtube.com/watch?v=ndmizOgDHC0
10 |
11 | 
--------------------------------------------------------------------------------
/2024/day15/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 15
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day16/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 16
2 |
3 | https://adventofcode.com/2024/day/16
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day16/index.html
--------------------------------------------------------------------------------
/2024/day16/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 16
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day17/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 17
2 |
3 | https://adventofcode.com/2024/day/17
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day17/index.html
--------------------------------------------------------------------------------
/2024/day17/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 17
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day18/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 18
2 |
3 | https://adventofcode.com/2024/day/18
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day18/index.html
--------------------------------------------------------------------------------
/2024/day18/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 18
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day19/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 19
2 |
3 | https://adventofcode.com/2024/day/19
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day19/index.html
--------------------------------------------------------------------------------
/2024/day19/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 19
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day2/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 2
2 |
3 | https://adventofcode.com/2024/day/2
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day2/index.html
--------------------------------------------------------------------------------
/2024/day2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 2
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day20/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 20
2 |
3 | https://adventofcode.com/2024/day/20
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day20/index.html
--------------------------------------------------------------------------------
/2024/day20/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 20
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day21/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 21
2 |
3 | https://adventofcode.com/2024/day/21
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day21/index.html
--------------------------------------------------------------------------------
/2024/day21/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 21
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day22/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 22
2 |
3 | https://adventofcode.com/2024/day/22
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day22/index.html
--------------------------------------------------------------------------------
/2024/day22/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 22
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day23/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 23
2 |
3 | https://adventofcode.com/2024/day/23
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day23/index.html
--------------------------------------------------------------------------------
/2024/day23/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 23
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day24/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 24
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day25/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 25
2 |
3 | https://adventofcode.com/2024/day/25
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day25/index.html
--------------------------------------------------------------------------------
/2024/day25/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 25 - FULL TEN YEARS OF AOC!!
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day3/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 3
2 |
3 | https://adventofcode.com/2024/day/3
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day3/index.html
--------------------------------------------------------------------------------
/2024/day3/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 3
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day4/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 4
2 |
3 | https://adventofcode.com/2024/day/4
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day4/index.html
--------------------------------------------------------------------------------
/2024/day4/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 4
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day5/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 5
2 |
3 | https://adventofcode.com/2024/day/5
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day5/index.html
--------------------------------------------------------------------------------
/2024/day5/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 5
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day6/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 6
2 |
3 | https://adventofcode.com/2024/day/6
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day6/index.html
--------------------------------------------------------------------------------
/2024/day6/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 6
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day7/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 7
2 |
3 | https://adventofcode.com/2024/day/7
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day7/index.html
--------------------------------------------------------------------------------
/2024/day7/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 7
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day8/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 8
2 |
3 | https://adventofcode.com/2024/day/8
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day8/index.html
--------------------------------------------------------------------------------
/2024/day8/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 8
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/2024/day9/README.md:
--------------------------------------------------------------------------------
1 | # Advent of Code 2024 - Day 9
2 |
3 | https://adventofcode.com/2024/day/9
4 |
5 | JavaScript implementation
6 |
7 | Check it live at https://surgi1.github.io/adventofcode/2024/day9/index.html
--------------------------------------------------------------------------------
/2024/day9/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AOC 2024 - Day 9
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-slate
--------------------------------------------------------------------------------
/screenshots/10_more_pls.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/10_more_pls.png
--------------------------------------------------------------------------------
/screenshots/2018_13.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2018_13.png
--------------------------------------------------------------------------------
/screenshots/2018_15.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2018_15.png
--------------------------------------------------------------------------------
/screenshots/2018_17.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2018_17.png
--------------------------------------------------------------------------------
/screenshots/2019_13.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2019_13.png
--------------------------------------------------------------------------------
/screenshots/2019_15.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2019_15.png
--------------------------------------------------------------------------------
/screenshots/2019_25.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2019_25.png
--------------------------------------------------------------------------------
/screenshots/2020_20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2020_20.png
--------------------------------------------------------------------------------
/screenshots/2021_23.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2021_23.png
--------------------------------------------------------------------------------
/screenshots/2021_25.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2021_25.png
--------------------------------------------------------------------------------
/screenshots/2022_14.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2022_14.png
--------------------------------------------------------------------------------
/screenshots/2022_22.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2022_22.png
--------------------------------------------------------------------------------
/screenshots/2022_23.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2022_23.png
--------------------------------------------------------------------------------
/screenshots/2022_24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2022_24.png
--------------------------------------------------------------------------------
/screenshots/2023_10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2023_10.png
--------------------------------------------------------------------------------
/screenshots/2023_18.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2023_18.png
--------------------------------------------------------------------------------
/screenshots/2023_19.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2023_19.png
--------------------------------------------------------------------------------
/screenshots/2023_22.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2023_22.png
--------------------------------------------------------------------------------
/screenshots/2023_24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2023_24.png
--------------------------------------------------------------------------------
/screenshots/2024_14.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2024_14.png
--------------------------------------------------------------------------------
/screenshots/2024_15.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surgi1/adventofcode/c1ef324dfbc4d25cc7768ff75d9d4a007c6e46aa/screenshots/2024_15.png
--------------------------------------------------------------------------------