Skip to content

Instantly share code, notes, and snippets.

var fs = require('fs'),
path = require('path'),
input = path.join(__dirname, 'input.txt');
fs.readFile(input, {encoding: 'utf-8'}, function(err, data) {
findSleepyGuard(data.split('\r\n'));
});
var guardWhoSleepsMost;
var mostSlept = 0;

Keybase proof

I hereby claim:

  • I am Dalecarlia on github.
  • I am freece (https://keybase.io/freece) on keybase.
  • I have a public key whose fingerprint is DFD8 5EF4 8496 5BFF C683 7414 B9DA F122 353B C18D

To claim this, I am signing this object: