Skip to content

Instantly share code, notes, and snippets.

@Picoseconds
Picoseconds / 1p1.js
Last active December 5, 2021 01:24
Very cool Advent of Code 2021 solutions
alert(
`123
124
124
126
...`.split`
`.reduce(([z,e],c)=>[+c,e+(c>z)],[,0])[1]
);

Keybase proof

I hereby claim:

  • I am picoseconds on github.
  • I am lightbulb_dev (https://keybase.io/lightbulb_dev) on keybase.
  • I have a public key ASCVWtIaxzWZuX95YNJBGgyf12ZnG74i5Qp4yOGCGNFPuAo

To claim this, I am signing this object: