From 3700a9063725b001267730d6586d9cf905476cbb Mon Sep 17 00:00:00 2001 From: Piotr Russ Date: Mon, 7 Dec 2020 22:53:36 +0100 Subject: day3 --- day3/day3-2.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 day3/day3-2.js (limited to 'day3/day3-2.js') diff --git a/day3/day3-2.js b/day3/day3-2.js new file mode 100644 index 0000000..a0c558d --- /dev/null +++ b/day3/day3-2.js @@ -0,0 +1,12 @@ +const data = require('./data') +const check = (x, y) => { + let trees = 0, turn = 0; + for(i=0; i