From 312882371efd803262d0e759a404d5bd13f1a4e2 Mon Sep 17 00:00:00 2001 From: TobenderZephyr Date: Sun, 22 Dec 2024 22:20:06 +0100 Subject: [PATCH] day09 remove class crap --- 2024/09/index.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/2024/09/index.js b/2024/09/index.js index 5648df5..6915b1d 100644 --- a/2024/09/index.js +++ b/2024/09/index.js @@ -1,20 +1,5 @@ import fs from 'node:fs' -class Block { - constructor() { - this.Id = BigInt - this.Size = BigInt - - } -} -class Disk { - constructor() { - this.Map = [{}] - - } - -} - function init(filename) { const data = fs.readFileSync(filename, { encoding: 'utf-8' }, data => data) const diskmap = [...data.split('')].map((sector, index) => index % 2 === 0 ? ''.padStart(sector, index / 2) : ''.padStart(sector, '.')).join("")