Skip to content

Instantly share code, notes, and snippets.

View mentalclear's full-sized avatar
🎯
Focusing

Dmitrii Kilishek mentalclear

🎯
Focusing
View GitHub Profile
@mentalclear
mentalclear / Day3-1.js
Created December 7, 2021 04:18
Solution for "Advent of Code" Day 3 Part 1
let fs = require("fs")
const readFileLines = filename =>
fs.readFileSync(filename)
.toString('utf-8')
.split('\n');
let inputArray = readFileLines('C:\\AdventOfCode\\day3.txt');
function countResult(inputArray, gamma_epsilon) {