Skip to content

JetDev22/AdventOfCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

title

Advent of Code

Motivation

I started Advent of Code because I had a little motivational drop while doing the last part of the Meta Front End Certificate on Coursera. Since AoC goes back all the way to 2015, I figured it would keep me busy for a while and give me a nice challenge.

Cool Tricks I found

To check how often a string or character appears in a given string, I stumbled upon a nice simple way to do this in JavaScript

let target = "ab";
let text = "jlksdfabjsöldjfösdabkdsjfösdlfjab";
let count = text.split(target).length -1;

This spilts the string in x peaces when it removes the searched for string. If found once, there will be two new strings, therefore the -1


About

Advent of Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published