initial upload

This commit is contained in:
2024-12-16 13:11:17 +01:00
parent 33180dc1a3
commit b4997da498
29 changed files with 3778 additions and 0 deletions

26
2024/09/index.js Normal file
View File

@ -0,0 +1,26 @@
let disk_map = "2333133121414131402"
// 0..111....22222
//let fileArray = Array.from(file)
output = ""
hints = ""
//output += "".padStart(disk_map[0], 0)
let id = -1
let is_file = false
for (let idx = 0; idx < disk_map.length; idx++) {
let length = disk_map[idx]
is_file = !is_file
id = is_file ? id + 1 : id
output += "".padStart(length, (is_file ? id : '.'))
new_disk_map =
}
function frag() {
}
console.log(disk_map)
//console.log(hints)
console.log(output)

11
2024/09/package.json Normal file
View File

@ -0,0 +1,11 @@
{
"name": "09",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"description": ""
}