Initial commit
This commit is contained in:
commit
8fcee096b6
34 files changed
+4217
No files matched your search
@@ -0,0 +1 @@
|
|||||||
|
node_modules
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
1000
|
||||||
|
2000
|
||||||
|
3000
|
||||||
|
|
||||||
|
4000
|
||||||
|
|
||||||
|
5000
|
||||||
|
6000
|
||||||
|
|
||||||
|
7000
|
||||||
|
8000
|
||||||
|
9000
|
||||||
|
|
||||||
|
10000
|
||||||
+2236
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,3 @@
|
|||||||
|
A Y
|
||||||
|
B X
|
||||||
|
C Z
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import { mapR, pipe, sum } from "../../../lib/typescript/reducers";
|
||||||
|
import { blocks, lines, strToNum, getMax } from "../../../lib/typescript/helpers";
|
||||||
|
|
||||||
|
export const solve = pipe(
|
||||||
|
blocks,
|
||||||
|
mapR(lines),
|
||||||
|
mapR(mapR(strToNum)),
|
||||||
|
mapR(sum),
|
||||||
|
getMax,
|
||||||
|
);
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import { mapR, pipe, sum } from "../../../lib/typescript/reducers";
|
||||||
|
import { blocks, lines, strToNum, sortDesc, take } from "../../../lib/typescript/helpers";
|
||||||
|
|
||||||
|
export const solve = pipe(
|
||||||
|
blocks,
|
||||||
|
mapR(lines),
|
||||||
|
mapR(mapR(strToNum)),
|
||||||
|
mapR(sum),
|
||||||
|
sortDesc,
|
||||||
|
take(3),
|
||||||
|
sum,
|
||||||
|
);
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import { solve as part1 } from "./d01p1";
|
||||||
|
import { solve as part2 } from "./d01p2";
|
||||||
|
|
||||||
|
export { part1, part2 };
|
||||||
Generated
+220
@@ -0,0 +1,220 @@
|
|||||||
|
{
|
||||||
|
"name": "typescript",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"name": "typescript",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"license": "ISC",
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/node": "^20.10.2",
|
||||||
|
"ts-node": "^10.9.1",
|
||||||
|
"tslib": "^2.6.2",
|
||||||
|
"typescript": "^5.3.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@cspotcode/source-map-support": {
|
||||||
|
"version": "0.8.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
|
||||||
|
"integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/trace-mapping": "0.3.9"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@jridgewell/resolve-uri": {
|
||||||
|
"version": "3.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz",
|
||||||
|
"integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@jridgewell/sourcemap-codec": {
|
||||||
|
"version": "1.4.15",
|
||||||
|
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
|
||||||
|
"integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/@jridgewell/trace-mapping": {
|
||||||
|
"version": "0.3.9",
|
||||||
|
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",
|
||||||
|
"integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/resolve-uri": "^3.0.3",
|
||||||
|
"@jridgewell/sourcemap-codec": "^1.4.10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@tsconfig/node10": {
|
||||||
|
"version": "1.0.9",
|
||||||
|
"resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz",
|
||||||
|
"integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/@tsconfig/node12": {
|
||||||
|
"version": "1.0.11",
|
||||||
|
"resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz",
|
||||||
|
"integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/@tsconfig/node14": {
|
||||||
|
"version": "1.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz",
|
||||||
|
"integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/@tsconfig/node16": {
|
||||||
|
"version": "1.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz",
|
||||||
|
"integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/@types/node": {
|
||||||
|
"version": "20.10.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.2.tgz",
|
||||||
|
"integrity": "sha512-37MXfxkb0vuIlRKHNxwCkb60PNBpR94u4efQuN4JgIAm66zfCDXGSAFCef9XUWFovX2R1ok6Z7MHhtdVXXkkIw==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"undici-types": "~5.26.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/acorn": {
|
||||||
|
"version": "8.11.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz",
|
||||||
|
"integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==",
|
||||||
|
"dev": true,
|
||||||
|
"bin": {
|
||||||
|
"acorn": "bin/acorn"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.4.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/acorn-walk": {
|
||||||
|
"version": "8.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.0.tgz",
|
||||||
|
"integrity": "sha512-FS7hV565M5l1R08MXqo8odwMTB02C2UqzB17RVgu9EyuYFBqJZ3/ZY97sQD5FewVu1UyDFc1yztUDrAwT0EypA==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.4.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/arg": {
|
||||||
|
"version": "4.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
|
||||||
|
"integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/create-require": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
|
||||||
|
"integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/diff": {
|
||||||
|
"version": "4.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
|
||||||
|
"integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.3.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/make-error": {
|
||||||
|
"version": "1.3.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
|
||||||
|
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/ts-node": {
|
||||||
|
"version": "10.9.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz",
|
||||||
|
"integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@cspotcode/source-map-support": "^0.8.0",
|
||||||
|
"@tsconfig/node10": "^1.0.7",
|
||||||
|
"@tsconfig/node12": "^1.0.7",
|
||||||
|
"@tsconfig/node14": "^1.0.0",
|
||||||
|
"@tsconfig/node16": "^1.0.2",
|
||||||
|
"acorn": "^8.4.1",
|
||||||
|
"acorn-walk": "^8.1.1",
|
||||||
|
"arg": "^4.1.0",
|
||||||
|
"create-require": "^1.1.0",
|
||||||
|
"diff": "^4.0.1",
|
||||||
|
"make-error": "^1.1.1",
|
||||||
|
"v8-compile-cache-lib": "^3.0.1",
|
||||||
|
"yn": "3.1.1"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"ts-node": "dist/bin.js",
|
||||||
|
"ts-node-cwd": "dist/bin-cwd.js",
|
||||||
|
"ts-node-esm": "dist/bin-esm.js",
|
||||||
|
"ts-node-script": "dist/bin-script.js",
|
||||||
|
"ts-node-transpile-only": "dist/bin-transpile.js",
|
||||||
|
"ts-script": "dist/bin-script-deprecated.js"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@swc/core": ">=1.2.50",
|
||||||
|
"@swc/wasm": ">=1.2.50",
|
||||||
|
"@types/node": "*",
|
||||||
|
"typescript": ">=2.7"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@swc/core": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"@swc/wasm": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/tslib": {
|
||||||
|
"version": "2.6.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
|
||||||
|
"integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/typescript": {
|
||||||
|
"version": "5.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.2.tgz",
|
||||||
|
"integrity": "sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==",
|
||||||
|
"dev": true,
|
||||||
|
"bin": {
|
||||||
|
"tsc": "bin/tsc",
|
||||||
|
"tsserver": "bin/tsserver"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=14.17"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/undici-types": {
|
||||||
|
"version": "5.26.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
|
||||||
|
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/v8-compile-cache-lib": {
|
||||||
|
"version": "3.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz",
|
||||||
|
"integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/yn": {
|
||||||
|
"version": "3.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
|
||||||
|
"integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"name": "typescript",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/node": "^20.10.2",
|
||||||
|
"ts-node": "^10.9.1",
|
||||||
|
"tslib": "^2.6.2",
|
||||||
|
"typescript": "^5.3.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import { report } from "../../lib/typescript/logger";
|
||||||
|
import { readFIleToString as getInput } from "../../lib/typescript/fileReader";
|
||||||
|
|
||||||
|
const MIN_ARGS = 3;
|
||||||
|
|
||||||
|
(async () => {
|
||||||
|
if (process.argv.length < MIN_ARGS) console.log(`Usage: cmd [fName]\nOr: cmd [fName] -e`);
|
||||||
|
|
||||||
|
const { part1, part2 } = await import(`../typescript/${process.argv[2]}`);
|
||||||
|
const input = getInput( `../data/${process.argv[2]}${/-e\d/gi.exec(process.argv[3]) ? `.example${process.argv[3][2]}` : ""}.txt`)
|
||||||
|
|
||||||
|
report(part1(input), part2(input));
|
||||||
|
})();
|
||||||
@@ -0,0 +1,109 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
/* Visit https://aka.ms/tsconfig to read more about this file */
|
||||||
|
|
||||||
|
/* Projects */
|
||||||
|
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
||||||
|
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
||||||
|
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
|
||||||
|
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
||||||
|
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
||||||
|
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
||||||
|
|
||||||
|
/* Language and Environment */
|
||||||
|
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
||||||
|
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
||||||
|
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
||||||
|
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
||||||
|
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
||||||
|
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
||||||
|
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
||||||
|
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
|
||||||
|
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
||||||
|
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
||||||
|
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
||||||
|
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
||||||
|
|
||||||
|
/* Modules */
|
||||||
|
"module": "commonjs", /* Specify what module code is generated. */
|
||||||
|
// "rootDir": "./", /* Specify the root folder within your source files. */
|
||||||
|
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
||||||
|
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
||||||
|
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
||||||
|
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
||||||
|
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
||||||
|
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
||||||
|
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
||||||
|
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
||||||
|
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
||||||
|
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
|
||||||
|
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
||||||
|
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
||||||
|
// "resolveJsonModule": true, /* Enable importing .json files. */
|
||||||
|
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
||||||
|
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
||||||
|
|
||||||
|
/* JavaScript Support */
|
||||||
|
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
||||||
|
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
||||||
|
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
||||||
|
|
||||||
|
/* Emit */
|
||||||
|
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
||||||
|
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
||||||
|
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
||||||
|
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
||||||
|
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
||||||
|
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
||||||
|
// "outDir": "./", /* Specify an output folder for all emitted files. */
|
||||||
|
// "removeComments": true, /* Disable emitting comments. */
|
||||||
|
// "noEmit": true, /* Disable emitting files from a compilation. */
|
||||||
|
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
||||||
|
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
||||||
|
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
||||||
|
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
||||||
|
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
||||||
|
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
||||||
|
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
||||||
|
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
||||||
|
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
||||||
|
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
||||||
|
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
||||||
|
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
||||||
|
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
||||||
|
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
||||||
|
|
||||||
|
/* Interop Constraints */
|
||||||
|
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
||||||
|
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
|
||||||
|
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
||||||
|
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
||||||
|
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
||||||
|
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
||||||
|
|
||||||
|
/* Type Checking */
|
||||||
|
"strict": true, /* Enable all strict type-checking options. */
|
||||||
|
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
||||||
|
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
||||||
|
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
||||||
|
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
||||||
|
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
||||||
|
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
||||||
|
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
||||||
|
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
||||||
|
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
||||||
|
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
||||||
|
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
||||||
|
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
||||||
|
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
||||||
|
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
||||||
|
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
||||||
|
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
||||||
|
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
||||||
|
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
||||||
|
|
||||||
|
/* Completeness */
|
||||||
|
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
||||||
|
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
1abc2
|
||||||
|
pqr3stu8vwx
|
||||||
|
a1b2c3d4e5f
|
||||||
|
treb7uchet
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
two1nine
|
||||||
|
eightwothree
|
||||||
|
abcone2threexyz
|
||||||
|
xtwone3four
|
||||||
|
4nineeightseven2
|
||||||
|
zoneight234
|
||||||
|
7pqrstsixteen
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
two1nine
|
||||||
|
eightwothree
|
||||||
|
abcone2threexyz
|
||||||
|
xtwone3four
|
||||||
|
4nineeightseven2
|
||||||
|
zoneight234
|
||||||
|
7pqrstsixteen
|
||||||
|
eighthree
|
||||||
|
sevenine
|
||||||
|
oneight
|
||||||
|
xtwone3four
|
||||||
|
three7one7
|
||||||
|
eightwothree
|
||||||
|
oooneeone
|
||||||
|
eight7eight
|
||||||
+1000
@@ -0,0 +1,1000 @@
|
|||||||
|
1six7396484
|
||||||
|
1ninehgqtjprgnpkchxdkctzk
|
||||||
|
sevenmpsmstdfivebtnjljnlnpjrkhhsninefour9
|
||||||
|
pppmfmnfourtworxrqrfhbgx8vvxgrjzhvqmztltwo
|
||||||
|
9eightctkdnnllnine
|
||||||
|
1eight3shhj8hrglbhxsixvhntf
|
||||||
|
4rlqzthlhkxvzhcm6
|
||||||
|
bklcbpdlfctwofivesqvpxjjzlvn35zhlljrfqf
|
||||||
|
36qv
|
||||||
|
76six66nine
|
||||||
|
rvzrcjzjfour3seven16six
|
||||||
|
2eightjlm
|
||||||
|
eightxfcmkqjqxzxjvrfive3
|
||||||
|
gxonefivejnvqbgnrjxv87gnlqqfdm
|
||||||
|
sixphvtnrgdvthreeseven21seven4
|
||||||
|
sixttxkjggfourtwo13khgfcbtsq9nbbztfs
|
||||||
|
m8t
|
||||||
|
9fourfsrdbvptwos53
|
||||||
|
vfqjtpmtp69five
|
||||||
|
tb17
|
||||||
|
bctthnksix4onegmgpjbbxqqrmk5hnfvzcnsgh
|
||||||
|
2sixthreeonenine5ndxdjgkb
|
||||||
|
sixtfk2qjpq
|
||||||
|
twohccqqrfour1zjlqq
|
||||||
|
3nine6
|
||||||
|
2zrstwopsmjmzdff
|
||||||
|
89three
|
||||||
|
dnrnmhkxp45onepttcbtwosevenone1
|
||||||
|
tztph43five4
|
||||||
|
nine4threerrllzdnsprvninezkf
|
||||||
|
brsnjcr8nineseven3four9
|
||||||
|
7sixsevennine5t1five8
|
||||||
|
twobhxqznqcft7nhfgcxqfourthree8
|
||||||
|
7sixbdbvdnckqslvxh8
|
||||||
|
5cnsvq82fiveeightttmnvcm
|
||||||
|
kptwone34seven5
|
||||||
|
fourzx1
|
||||||
|
twodcpmrxmrgkeightsix228rmcqf
|
||||||
|
two9dcfjcjz2seveneight7
|
||||||
|
7twoqthpjdxc8xhfznninethreesix
|
||||||
|
vjbxtseven82vxbzjdsththreeeightg
|
||||||
|
524one
|
||||||
|
dxjqvhgtfpmtxjmlt7eight5eight
|
||||||
|
3mczqpssixsixx7ninenine
|
||||||
|
8667
|
||||||
|
3eight9sgbtdrrhr6lfxbmfthree
|
||||||
|
two1one8sixdzxqqzlnhfpkdjxseventhree
|
||||||
|
kmflhtjsnq1six94
|
||||||
|
lnrphbmqseveneightk2nine
|
||||||
|
s5
|
||||||
|
hckfhhqbsg3srnzdvm2nine
|
||||||
|
three58six7sixl
|
||||||
|
1sixfour717
|
||||||
|
4fivenblhmbxfjtwofive
|
||||||
|
jhmxb1crbttv47
|
||||||
|
zcfive7onecgbfqtsgpxzfbtbrnine
|
||||||
|
nine73mrvdntwozbvninethreemsbcbjcp
|
||||||
|
qclgtqkmnh8four
|
||||||
|
twoqmzhp6v91fiveprs
|
||||||
|
bjnctmcctpzdq27six93five
|
||||||
|
djmdzpbfzsix1eightone5plbfrone
|
||||||
|
btcfdlmvrnhqgvmtmn4foureightt3
|
||||||
|
7djtfour78
|
||||||
|
onetjmpgdjqlnz5two
|
||||||
|
one5four
|
||||||
|
5eight27nmlfiverlzjxpts
|
||||||
|
365mvfhqfhflhtzktwo
|
||||||
|
two8gqzcgjxtcgxvnlvfx6lvvkbq36
|
||||||
|
4srgn95vnqtwo9kfcchklpfvzzkcq
|
||||||
|
pcgjfvqlgp1663sixeight
|
||||||
|
pxknxlhdjs7rsjkbpzhtvzd
|
||||||
|
6one36eightfcqzktwotwombxr
|
||||||
|
3fmmdlktwoeight
|
||||||
|
foureightone5cgvdv
|
||||||
|
one9fourlsdfmbsvnxhhl
|
||||||
|
twosixkpcrtnhhbb3eight9six
|
||||||
|
3ninemrntwozvrs5tpbnz
|
||||||
|
sixsix3fourgrcjqsk51t
|
||||||
|
71six74threebrdkpfbmjnvpbbm
|
||||||
|
5sixbptk6ngj
|
||||||
|
scgttmjzqp6
|
||||||
|
335eight
|
||||||
|
one287976
|
||||||
|
5zgzsgeightfourkkcjl
|
||||||
|
47one1one
|
||||||
|
7one6fivesixfive
|
||||||
|
6ktjhbvrtsthreesixfxmtgrvtcntljrbxrxrdpcjcftwoseven
|
||||||
|
gltwone32vmxmzsqqfhbppvslb2
|
||||||
|
tfphzkcxh3twofour9oneightg
|
||||||
|
gdsrbtslnbsixxdfrdz45
|
||||||
|
3sevensevenfoureight4jnine
|
||||||
|
six5eightthreeseventwolf7
|
||||||
|
spnv4six
|
||||||
|
nrlrqp7qgch5cmbhgrvbtppkmt8
|
||||||
|
61four261bxmxxrz
|
||||||
|
onetwo6nbvgttmkx
|
||||||
|
5twofour281qhsc8
|
||||||
|
seven8one
|
||||||
|
onexsfivetwo93
|
||||||
|
ckrllvdxkgmjkqfpthreefrqjshlplgeightjvxhb3fourkds
|
||||||
|
nnzbmh3
|
||||||
|
ps55seventhreetwo
|
||||||
|
eightsix67three
|
||||||
|
2threehcdfdxlkcsixlsgkkqgt
|
||||||
|
3rjxsxfdqeight81hpr8gppmxrj
|
||||||
|
9skrxzdvkzzthree4rsfrgpqlonefour
|
||||||
|
27three8
|
||||||
|
pxpslqbbqmzcklvbd4
|
||||||
|
eightseventwo6
|
||||||
|
nine9dbbcqfhfkrvjb9
|
||||||
|
72seven
|
||||||
|
2twopztmbkbttdglrtv8two
|
||||||
|
seven87fourtbdxjzktd4sevennine
|
||||||
|
5qpcvmkr5ninefour
|
||||||
|
twotwoeightqnjjcdqq45
|
||||||
|
2bkccvkmeighttgqjjthreefour
|
||||||
|
56oneninethreevv4chvlfljbrthree
|
||||||
|
9sixseven9zspvdsqxzf
|
||||||
|
4four8ndqjtgllktwo4
|
||||||
|
jchmqgp85
|
||||||
|
dznstvthreeeightjzcxzsqbtsixqr8
|
||||||
|
85ntwonexlm
|
||||||
|
qtgfhskvonexrg13four879
|
||||||
|
86onetwonejf
|
||||||
|
ztwonexqpckxcz4jpqgthreebjmzxfnvz38nine
|
||||||
|
one1onekptcbbh5four
|
||||||
|
dnqcckvxngpndvmm7eight5seven8three
|
||||||
|
4nine8dgsqjhvl
|
||||||
|
142rgdnx
|
||||||
|
mprgxckmzbzvkdsgdjzfive5fivenrsxvhvs
|
||||||
|
five41fiveqxm12
|
||||||
|
sixdhgs6dtnplsix
|
||||||
|
seven5djeightlrnghlkvjkclmsmlgn92
|
||||||
|
ggtdbkngcp8
|
||||||
|
one58foursevenbqbbkzbf
|
||||||
|
nine6fourrmpbsixthreeeight52
|
||||||
|
twofjbhnfthreefivesix31
|
||||||
|
fiveeightsevenfive1fourfive
|
||||||
|
prhfhbpzrzghj94six6fivethree
|
||||||
|
3mffjmjmtfczjhjqnine
|
||||||
|
sktx9threesevenlxmfkkmseven45
|
||||||
|
13jlmhmcnvjzqsnthreeqdslgdlqzlmxgbmvzlsix3
|
||||||
|
four7sixktndfcxzvmxx7ninefour
|
||||||
|
three2nine
|
||||||
|
7fivezvlklbd
|
||||||
|
fourfivesrczxj8one
|
||||||
|
63five4vhklbtqmninemhsfsx5five
|
||||||
|
3five2six1
|
||||||
|
5qsfmsbtxcrvmvhn3sixthree
|
||||||
|
nine5xvhzlfjpbcc4xdkkps5
|
||||||
|
p2
|
||||||
|
4tczsttvpsql9seven
|
||||||
|
x36six83bkjhrsghkvvgtthqtt
|
||||||
|
8sixfive6
|
||||||
|
three9fivekmr
|
||||||
|
sixone1sixthree1
|
||||||
|
4reightfivetvjbsnql8
|
||||||
|
five3gtmgqjnkrq5
|
||||||
|
jtwodpjqxgthreekrxggbhgbtone1
|
||||||
|
fivefive4
|
||||||
|
gxlchjn67
|
||||||
|
qrlv27skhkmmninesevenqxppzdgeight
|
||||||
|
72five4
|
||||||
|
ptjtgsghgrbffgnl27one36
|
||||||
|
sjkdqnqkpqcpp9
|
||||||
|
xnggjgg1
|
||||||
|
onemlzp1
|
||||||
|
gcr74bjtddqvqktl
|
||||||
|
seven5bgvsknbsdmjqptkfdfour
|
||||||
|
twotwo9429b
|
||||||
|
seven5threec
|
||||||
|
four6mchmrqv
|
||||||
|
kjj1zbfsnmmcgzn
|
||||||
|
2twozmzfcxprsxtnrxqtkpknhmbckdqd25
|
||||||
|
fivefour33kzcxdhn84pphrnf2
|
||||||
|
mvcsbvvg4eight84one
|
||||||
|
eight8sixfm4sixeight
|
||||||
|
bvrl21
|
||||||
|
klnhdcppjninefivenhdk7
|
||||||
|
four5three19jkjc5threeone
|
||||||
|
jvc9cptctvcrlqsm6rkbvvknbkdpffj7
|
||||||
|
threesevengblssstwodzkbv1six
|
||||||
|
rdzmsdnbvtwogthshznninerthree34
|
||||||
|
onejrpznrfft83prbgzczt
|
||||||
|
fiveonelgjvvhbbdlx42
|
||||||
|
fvpjgrtwo7gbqtsslbnptbt
|
||||||
|
7one1
|
||||||
|
h4ninevlhftscfkl
|
||||||
|
rzrgg7qjfrrxgzctq
|
||||||
|
fivefmpmdb1
|
||||||
|
eightthreepmbzqcqthree7
|
||||||
|
sixldscsmfive3
|
||||||
|
ninefgztvvqchq8eight
|
||||||
|
pjtfive8zd12twonine
|
||||||
|
rdgmgqv2ttz
|
||||||
|
cgtxczthree5
|
||||||
|
5veighttwofour1
|
||||||
|
sixjninethreervzgnqqqfive6fqzntfsix
|
||||||
|
mfzhfivefhsksgjcst5
|
||||||
|
fzeight4
|
||||||
|
6sixeight3
|
||||||
|
nineqnjvxf1one4
|
||||||
|
hcxxcxd2seventwosevenxcjmjvmhnv
|
||||||
|
4four7
|
||||||
|
35ninezvfqsixqt2kc
|
||||||
|
dzloneight3
|
||||||
|
two7jbnkvxpnhq
|
||||||
|
tmljsvlcstwo37six5eighteightgtv
|
||||||
|
five2sevenqbponejsixvvxkc
|
||||||
|
9pmlrcsstwo295
|
||||||
|
ntbjfpzzslgpnn5fivethreefive5
|
||||||
|
72tlfdnjdltstwo8
|
||||||
|
qvzclcpqzgfkkcb93
|
||||||
|
three6three1xdkn
|
||||||
|
dgkbxqzjthree7
|
||||||
|
threesbjninevdvlhhq572vszh
|
||||||
|
six2three5
|
||||||
|
sixnine9xpmqlbpd
|
||||||
|
jvrdcf8
|
||||||
|
6kpcztn1
|
||||||
|
1jbgcthree3eight28lmfhzn
|
||||||
|
threetwoeightseven6
|
||||||
|
dnmtn8knzjjpmzfxvlrq
|
||||||
|
3nine5
|
||||||
|
19two
|
||||||
|
fbllsixseven1onegqpzqeight7drgf
|
||||||
|
szrkhpxm3hbcdgrrtg17cr2five
|
||||||
|
one2onehhplgxctmv1237
|
||||||
|
81two4zgltbz
|
||||||
|
one5c
|
||||||
|
five4sevenfourtwonvnldmvpeightfive
|
||||||
|
greightfive82seven
|
||||||
|
6four9eight747three
|
||||||
|
lrzgd28lzfljk68sixhnnljtkzkp2
|
||||||
|
vone6sixvzzzkmm24zzjskvzv
|
||||||
|
6seven2
|
||||||
|
cm16one
|
||||||
|
6mqxpzlxhone
|
||||||
|
2teightseventhreefgksfourfoursix
|
||||||
|
3vtqlzddlrbpxmnjqntwo7fiveseven4four
|
||||||
|
32ftslmt1ninejtdxnine1
|
||||||
|
one3sixfour4gxkchbrjzf
|
||||||
|
6eight9threetwo6onexcqlqfzfive
|
||||||
|
onefivexnjnfc1nineflckgjzsix
|
||||||
|
59ninefoursixfour
|
||||||
|
7tqjdninelnfthreekcdxfqzcl9kmvjfvbrm
|
||||||
|
xjbseventhree86eightlpfseven
|
||||||
|
cbzvgxfkgneightfive98
|
||||||
|
srsdrninevpzgrhrqtjfour7htbhbjttb4
|
||||||
|
hdmxvkcjdjninebzvmsgsseventhreemhggmhgg11
|
||||||
|
four32ninesmjgblfcfmvlffjtwo
|
||||||
|
kdx7pd3pcvrsjkczqeighttwo6
|
||||||
|
one2pghjsggtlbxslmthreeqgcskttvrfseven8
|
||||||
|
gcglgbqbxzjrpxjzvseven88
|
||||||
|
eight1fourpglqv
|
||||||
|
1twoddkk2fourseven4
|
||||||
|
ninejrqsksqhtl9ptd5
|
||||||
|
ppkeightwo5ggthreet
|
||||||
|
7onefhccblsv
|
||||||
|
eighteightmp6fqrfnpqjvx
|
||||||
|
bstdjfjmxjjpz12d
|
||||||
|
mdjmpqvhjzk616threefourplr
|
||||||
|
7seveneightsix
|
||||||
|
nhsrvtwo37ninesix
|
||||||
|
1one6gxkknfmc2oneightq
|
||||||
|
8dfflfour36
|
||||||
|
37d7fmzkzztwo1
|
||||||
|
6lmg2qmcsix7r
|
||||||
|
seven889xt93
|
||||||
|
phbhqftdvvkssxktgnc6xdcdxlxzfneight5
|
||||||
|
2s593xvlrdmjcz93
|
||||||
|
rsmgvm4
|
||||||
|
eightgmgqb1
|
||||||
|
35qfqdkdtgrvhdqdeightmqjlvlpfvzjrj
|
||||||
|
748
|
||||||
|
kbmpxqnk61ncthhtrkpznbxzfbpninehmhlbkdjtjxtx
|
||||||
|
foursix4mpfoureight1
|
||||||
|
6fzffnqzqb8tsccfour8
|
||||||
|
gzsxrjkcm44fournqzpseven
|
||||||
|
1243
|
||||||
|
2threeonefourtwofour
|
||||||
|
ninefhnr649ngld
|
||||||
|
fiveseven8
|
||||||
|
ttwo5three5ninefxsqxvkhzxzrsr3
|
||||||
|
kljvvxlvpctfz3seven
|
||||||
|
jkh8
|
||||||
|
9sixxvfnnznttseveneight5
|
||||||
|
92eight56onezpvrj
|
||||||
|
chzsx4
|
||||||
|
53fivetspsfive1fivenlmtvbl
|
||||||
|
plvcvn3brcrcqr94six5
|
||||||
|
cxqnlbplone97dgpjkkvfsksix64
|
||||||
|
eightlcsjrkxeight4qbgjffmnxlsvzcdsvbl
|
||||||
|
4ghbljhttp36
|
||||||
|
ninerpztrhv12
|
||||||
|
threeeightthreeoneeightsqdknqlf2tg
|
||||||
|
tbfnine8fourfivekllthreebsqjgqpvsm
|
||||||
|
6oneone
|
||||||
|
eightsix2seven
|
||||||
|
t8fourtl
|
||||||
|
6six76eight
|
||||||
|
ldfkqkgfiveninerqsrscftpv57oneightr
|
||||||
|
vcnfvftwo43
|
||||||
|
kggflclnzjjvxkc5
|
||||||
|
19five1twoone8four
|
||||||
|
77sixkzrpkxpzmgd
|
||||||
|
12fivemgxgbpz2seven
|
||||||
|
582gsvccszvk
|
||||||
|
fxtsdfrtbsgplxlqffivejtnsk9
|
||||||
|
kjhkjvz2dcxs2four
|
||||||
|
3twoseven886kr9
|
||||||
|
seven49
|
||||||
|
611mllnqfqlnvone4
|
||||||
|
18sixnpdcjcjpm
|
||||||
|
hvs9fivethree8gfdjffmfour
|
||||||
|
5two1threerkqxvsevenhmh
|
||||||
|
qpkdnine9fivehfiveseven
|
||||||
|
jkspcmqgv5
|
||||||
|
2vrbhsxmp74six2qcmnpsfffnthree
|
||||||
|
zqmdtrgktlvbjlsxjf7677jqt6
|
||||||
|
gxmtsevenddtpqpxhljoneninedjvhqhftcpb9
|
||||||
|
qqxxbhtfmpvdq4seven2jscgkqkj6
|
||||||
|
61365q
|
||||||
|
gvztklvxtwo8kmdlbzxglf
|
||||||
|
ninepxtd1pbcxbfhkvtsix
|
||||||
|
6cssbfstfbspvx
|
||||||
|
rdkhlqrhmj7fourbpbrqxmbxxsnthree8
|
||||||
|
12th3rlnqgpc
|
||||||
|
4szrvgbcbg6dpsjzcdvgone
|
||||||
|
lfour4
|
||||||
|
5threefour63qcvhpdxb7rmsdkl
|
||||||
|
4one452sevenfour53
|
||||||
|
nine5gfourfour5bttptfq9khknptfrbc
|
||||||
|
348fsvvfk
|
||||||
|
one6ttzlkfxc
|
||||||
|
sevenmksqtwocthdjtkhr95nine
|
||||||
|
7m3jlqrqb2six6
|
||||||
|
lrqqznf6nineone46
|
||||||
|
slpgjbslvtfgxsmbgzksevenfive4six
|
||||||
|
7jvnnqc2844qfzfour
|
||||||
|
64four353cpm
|
||||||
|
three9fivejlkxkzn
|
||||||
|
vcjbnpqj7plgbdblvgp
|
||||||
|
twofgqtzvspzjsxjkvrbs8fourgtfznpjxk2
|
||||||
|
seven44fppgfournqzmgfzfone6
|
||||||
|
h2jxdpkjktwo
|
||||||
|
kdkoneightjstgn9
|
||||||
|
7bbfsgl6sixdchgpnine3
|
||||||
|
nqvqmzxr86
|
||||||
|
3dpntnsdk
|
||||||
|
6ninefqblshpxvteightnbqzfszjndvzksfpsxone
|
||||||
|
59vztmq2three1
|
||||||
|
nine9sixhnfczn
|
||||||
|
pmkm3ctrbjrdninetwoneqzj
|
||||||
|
7znmpvqonecmmdcschn
|
||||||
|
5five5ninespthree
|
||||||
|
4xhmkgkmtgrtmrzrkjmgjsixninefxxxlvdknsix
|
||||||
|
7rnlfspthxjvlcs7nqtggmninefive8
|
||||||
|
5fourfour76gpseven
|
||||||
|
two9five45four3
|
||||||
|
5zhvmrbccf9fnsfvb3
|
||||||
|
3hcrhfkkthree
|
||||||
|
4xlgzlhjceightqxvsix83skhkkvzbtflbvvt
|
||||||
|
six58ppcxmph23lbxhvqmnnxheightwoklg
|
||||||
|
ninerbxxxtl4
|
||||||
|
4dvdjjfmhlfnzjrd3ninelrlhdpngvfdvdkjkbrone7
|
||||||
|
vpqtgkkdgqklmbc9three
|
||||||
|
foureight21
|
||||||
|
71
|
||||||
|
7two3kcvvfv
|
||||||
|
58vtsnlfkbt8czjb
|
||||||
|
6threebmncseven8nx8
|
||||||
|
eightmgsvctqb6xslnsgl
|
||||||
|
32sevensixmsppjkzrgqtmzvpsrljqssk
|
||||||
|
85l94
|
||||||
|
nzjqttsevenmrfzzv7
|
||||||
|
threetwosctspxzjgn5fivefour
|
||||||
|
2six8one87ppfhpqks
|
||||||
|
eightzfjfccdcvfiveone84jf
|
||||||
|
eight81eightsix5
|
||||||
|
foursrkldsthree5fzzmseven
|
||||||
|
7five3threet48
|
||||||
|
4twonelc
|
||||||
|
8eight6t6
|
||||||
|
qfheightwo43three785
|
||||||
|
two8cnsjshfpff4threeffqk
|
||||||
|
4dxfmd46
|
||||||
|
7grtxmvhcl849two
|
||||||
|
five4fivefive7
|
||||||
|
14ffour
|
||||||
|
92nzsk
|
||||||
|
13xmgqq9eightnptsixpvpntzcjn
|
||||||
|
29eightkpqnfour1jnine
|
||||||
|
4bcftnzdmcgvrczhzsn8dlqkzngjc
|
||||||
|
1pqmkbthtwo7
|
||||||
|
kzcsixxcsqmczrkjvhv3ppt44
|
||||||
|
eightfbvplm677csfzfncptflmgtrntqcpptj
|
||||||
|
fiveeightthreethreelvp1
|
||||||
|
dlvdhtvqvfctfl8four6vvrkgqddd6
|
||||||
|
msgtg12mgqcfvgxlgdeightthree
|
||||||
|
qzjkz5196fivevxkpvngfxrfourthree
|
||||||
|
seven4nineeightjsevenngfourfzdx
|
||||||
|
9fourjbone7kmsc
|
||||||
|
eight43nbklgg
|
||||||
|
ss4c
|
||||||
|
4eightsixglkqpjtwojhxmh
|
||||||
|
sevenfzrqv9mvkxgpghtc3one
|
||||||
|
fk7fsgndcrthree
|
||||||
|
7194czfive65
|
||||||
|
9nineone
|
||||||
|
six5djzqbcdncfour7
|
||||||
|
zceight3two4vfbmtfbh84bhrpbndm
|
||||||
|
7trqzbdjqeight4sevengzzsixjfkf
|
||||||
|
two3twovtzghbdcmc2
|
||||||
|
ninehrrdr1
|
||||||
|
3nvdvvjhxptsix7nlbdlz2
|
||||||
|
zdbsxpvbkfivegsndfourjftnlb43four
|
||||||
|
smgqrnbzd3plmsngdvz
|
||||||
|
lplz67
|
||||||
|
2pvqcpl2
|
||||||
|
mvhqninetwo2
|
||||||
|
1czljdtxnz
|
||||||
|
threefqqs696fivexssmqvpp
|
||||||
|
xtggzdrg4jllfkxtvv4xqlvtgrllseven
|
||||||
|
ncdxmjcfllr3eight7
|
||||||
|
3ftjjnzthreefmjmshdd
|
||||||
|
7jxs753four4
|
||||||
|
8eight54six2lxfnmtndgk
|
||||||
|
54sevenjnlnlc4zvmdd71
|
||||||
|
threebxcjdpprthree3qnsfqgbcsix9cbhlnvjdc
|
||||||
|
ptvdrm5vzc
|
||||||
|
8twolsxsgmzfqfivefourqlcpzggfm
|
||||||
|
skjzfblgsl4five
|
||||||
|
onesix9eight6
|
||||||
|
cnmjmkzmml732
|
||||||
|
l5one
|
||||||
|
fivesixclsxflmtml1nine3bj9
|
||||||
|
5zqbxz56lnbrntwo366
|
||||||
|
89seven
|
||||||
|
eightqpvztnrxxc4
|
||||||
|
svbxfssmfsnflkbzmqfsixdzfdlgeight31threeseven
|
||||||
|
tkkb2twofourvxcs4kgsvgkztjmseven
|
||||||
|
25qcjkptgbz
|
||||||
|
twokjcthrmnsrtrkhxptwo2ncrfive
|
||||||
|
seven92three1hnlbhzrghxone
|
||||||
|
onemvghbhpzxdhsssbms3sixnine99
|
||||||
|
qgtwone3sevenmkfourxqvvfive
|
||||||
|
lq141
|
||||||
|
gpvtdflfive852four
|
||||||
|
gdtwonekpfhtmkfseven6rqonesixtgdxttnjzc
|
||||||
|
seven2five6seven
|
||||||
|
skdxqonefourgrp6
|
||||||
|
djlninetwo7five23
|
||||||
|
hpxqlmqeight2
|
||||||
|
8sixeight29ninehfnllkvgeightwomp
|
||||||
|
326kvfsnb
|
||||||
|
eightfivetwosixjhjkhjtdpx4
|
||||||
|
mtdj4threemtqldccqhffive7pgnrcqpfive
|
||||||
|
seven74grtdbl29four
|
||||||
|
twonseven6
|
||||||
|
sevengmtlhxgqcbrjlhgzs3sevenkrfl
|
||||||
|
28zmfvgql
|
||||||
|
geightwolnnmmhczzj1p
|
||||||
|
hkbknzsbgpfourdfrfdxpqlz2seveneightseven3
|
||||||
|
34bbrjvdqszqgbkndxsz5four88
|
||||||
|
dxfhkfeight8qsix4five
|
||||||
|
xsnfslsc5one4dnrsxlrklt23zhgknhjrd
|
||||||
|
dgkrffzctzpk9fourdvmgnbbnfbt3
|
||||||
|
jbfkcm5sevensixpkfnqqgffdvkgmjsbpkpqvsixjrvm
|
||||||
|
mckpzdvnlrsltktbgeightjk6xvsfmhszr
|
||||||
|
1one46three
|
||||||
|
77eighthgzqqg1
|
||||||
|
threechgthtshpqnxsixmzqqxbzdtwoeight1five
|
||||||
|
ltnkv3186eight5five
|
||||||
|
fourncknkmdvfpgtdkqlxone5nine8
|
||||||
|
gvnvsxrfdcfivekfcn9threebsxdsnbhtwo5
|
||||||
|
89nnprfkrhrmfdzqssdjspvzzpshnzxsrzctwo
|
||||||
|
3sevenxhnlcgkjnccgbrnfhzc
|
||||||
|
678fivedvtdchqsevenqrmvjqlq5sfxnqj
|
||||||
|
xbb3
|
||||||
|
3d
|
||||||
|
81sevensix
|
||||||
|
59sixg
|
||||||
|
3foursevenone
|
||||||
|
four6nine48
|
||||||
|
6lkhqsixnnhsjqeightc96
|
||||||
|
sixfiveeightthree9nnvsgmgllbqvgjpqhfqtznm
|
||||||
|
sqgxfourninenqpgx15fiverpk2
|
||||||
|
zlr8fthree
|
||||||
|
jnztj59
|
||||||
|
5eight13fourjvxfndzptfnjpqzlb
|
||||||
|
459zpnrzbxdsplpspnh9zbqvdnxgdfour2oneightmfd
|
||||||
|
28twoddhpqzf7
|
||||||
|
6nine2168mcgnmc
|
||||||
|
4fiveqvmd8157
|
||||||
|
1sevennine8793kxkx2
|
||||||
|
sixrbr6ninemdmsmjrchbvhvpmmsfphtslll3
|
||||||
|
one2qcrqhbqnine
|
||||||
|
rmrbtgfkd2cbzpggbp6
|
||||||
|
797fbxjbb
|
||||||
|
fiveonevsv2four28
|
||||||
|
six9sevensix
|
||||||
|
7nxztt
|
||||||
|
three3vcqrjgjndsbxpvclvg2vsv3
|
||||||
|
22rgm3
|
||||||
|
jxrgtsdzppone5twoj1sixmrdxrsbmf
|
||||||
|
44fivefzkdrvrdp3hbmp
|
||||||
|
17bgrjbxone5vvnztxhpztnmvtworzmc
|
||||||
|
keightwoonethreefourtx4six
|
||||||
|
2threexlsn
|
||||||
|
8ktqbzfninexpgkppg8
|
||||||
|
295hcbbnineone7qdgcvjzcs
|
||||||
|
hjshndvhgz3bjh4sixeighthvxmdtkkbgqbsdxg
|
||||||
|
8jdnprbkmxttwo
|
||||||
|
fivetxhgnjfkhlxgts2pqrvjbscrq8vqtbmkrpxlkhvkff
|
||||||
|
njgkqbnkmdqjqldmpdfc1mjqvm2eightxzlbcz
|
||||||
|
2ljrbbmseven
|
||||||
|
xmxqpchds889fourpnzfdljvfltwo
|
||||||
|
six4jvfnfsfjseven37
|
||||||
|
ddbgmgseven3ninefourmtlvkxbrnvnjdfspjffour
|
||||||
|
5mkjjnine6one
|
||||||
|
7fournqg9xvpfh
|
||||||
|
sevenfourone659gqddprfrqg4three
|
||||||
|
twothreem382
|
||||||
|
onetwoeight8kqbtmbdhc
|
||||||
|
817onefour
|
||||||
|
8gmxjzj
|
||||||
|
bckmc3four3three
|
||||||
|
746cfhl4nffcksqlonefive1
|
||||||
|
five338
|
||||||
|
five4bzkg
|
||||||
|
thltwonefour9nxznrcfbx52onem
|
||||||
|
four5bzbhzvmqqbhkone2three
|
||||||
|
seven4five85sixcf
|
||||||
|
4drchjthree4
|
||||||
|
sevenzsg9vmdjcgsvvxz32fiveseven
|
||||||
|
hjnkgzchqfjfnfv3dxbxn4
|
||||||
|
76sxzjqfhpc44
|
||||||
|
72threesevenknkbdhqvkpcxvhlldhzdkone
|
||||||
|
six4srtzrmgksrvkjktchl
|
||||||
|
sixvnhlzfivelppsevengbndbprhn4
|
||||||
|
five1sevenstpfjpbg4
|
||||||
|
3ztrhnxkpmh
|
||||||
|
czpbffqlkkjdfmkspxvfrqrgn4rfmzvfive
|
||||||
|
fourthreethree1nine5ninekgqxlhvtlr
|
||||||
|
4tcjctphneightptlqlvxmfkb5
|
||||||
|
cvbv798pzrzmfivesixqhxdntdtcq
|
||||||
|
6jkqptcvrjdnqtkblfour4ninedv9two
|
||||||
|
four51eight
|
||||||
|
3two9eightlbvdcrxkfive
|
||||||
|
3six5three
|
||||||
|
3threesix65seven
|
||||||
|
3three8two
|
||||||
|
45b9sevennqnmkmps
|
||||||
|
7threefourseven7cmtmnfive
|
||||||
|
6six8seven4four66
|
||||||
|
sevenfour91sc6sixghqhfmgcfour
|
||||||
|
ninelmcxtwo4hlstzlf6
|
||||||
|
six45fiveone
|
||||||
|
seven9sevenqx3vtk
|
||||||
|
skpsxhnqsix3one
|
||||||
|
vzveightwo5five2sevensevensix
|
||||||
|
cd9nine23ngrcmcxtd3ltpcn9
|
||||||
|
vcnfshkpone72ldgtqonehjq
|
||||||
|
cgqvcjnbtwohkmcfsvfr82nine9
|
||||||
|
8one75fouronedklf
|
||||||
|
3fivenvnhlrthree
|
||||||
|
369sevennine9twofour2
|
||||||
|
ninevpbmftmll57fivedjqpxnpcjfour79
|
||||||
|
71rcpfnl5
|
||||||
|
psixzxslfrmxdkcxvthree61npplpmrmnkjnvloneightfl
|
||||||
|
42six3fournxkjcdslp5ninetwo
|
||||||
|
8frbrhghpggq2zxjhrqdssixfivefivejrbd
|
||||||
|
foureight1pgsbkhkjnz78seven66
|
||||||
|
sevenfive4ngxfivezs4fcvx
|
||||||
|
kxjjbcxx6qh5jpzkgml
|
||||||
|
7gmgqrxt9fourk78hmmjt
|
||||||
|
nineseventthxmrxdsn91three
|
||||||
|
seven1mbqn8fivezpnrpjbpsx22
|
||||||
|
2hfvqkeightrnscdeightglb
|
||||||
|
onefive7
|
||||||
|
heightthree4qdnvhxbzjpd7vvseven
|
||||||
|
ninengrzsztmtnkjmjmzqqqpcbx7fourtwoeight6
|
||||||
|
sixfbrj7two83
|
||||||
|
eight1vnqrf9zdnineninecbfcj4
|
||||||
|
chsldbpnmxlgbjqbpkh34six5prb
|
||||||
|
zrjjtlnc66271dssfour
|
||||||
|
3zsdjzpqtwonec
|
||||||
|
eightclmbz3gphlxeightwov
|
||||||
|
5cgvfive
|
||||||
|
fivenine54five9
|
||||||
|
64ninenine1371
|
||||||
|
rvxxeight5rmd8three
|
||||||
|
3fivenfhskrlzcrcdxjvsmmxfiveone
|
||||||
|
sixpmpx7jbdone7qldr2hz
|
||||||
|
3two8nineone9
|
||||||
|
6sqdqv
|
||||||
|
pflddeightonensqrchsrsixseven2
|
||||||
|
threesix2sixsix2
|
||||||
|
5594zhlqbkfmmplvcclxjcgngmfrbsrxbfn
|
||||||
|
fourblpmgmtxltjdmrlmdfourf7bdjllqsbh
|
||||||
|
4twooneightf
|
||||||
|
fourjvddcqsxbcrjthvcjjshbngkrfive4
|
||||||
|
threethreefbdvxfksrsfnrk42hptbr
|
||||||
|
692nrjhjfpgg4foursevenlgm
|
||||||
|
fmfbd6pcqff93
|
||||||
|
gcdgfourbtttvlone21three
|
||||||
|
onejczqmpbrjqmljmchkmh77mnzsxp
|
||||||
|
cnpfc87three
|
||||||
|
2one4
|
||||||
|
hzdpmxflk1581three29
|
||||||
|
97tnzqknz15bxttzrsix
|
||||||
|
5eightfive
|
||||||
|
894six675
|
||||||
|
fourcqmgpdsjdjcvmgtsevenndfkgrnqbp6fourfive1
|
||||||
|
fkhfz1kthreethreejndpdrjddnvztgt
|
||||||
|
tpn3threemxtdkfphvctwohklcbzdn74nhhfjr
|
||||||
|
5fourfour
|
||||||
|
six8twoeight163mrkvvc
|
||||||
|
ninersix8
|
||||||
|
1twofivesixkbpljt
|
||||||
|
67nine11tdnplxklxkdbxffn6
|
||||||
|
ninesix9gfive7jvvmcrnine
|
||||||
|
2bvsqxbd7drclkbxrtnine
|
||||||
|
gtrmtlzzsixjxqhzxcdqppmf45two
|
||||||
|
three43threefdmsjxxdvkthree58tblfvxx
|
||||||
|
one1365sevenjzbgtrjtlc
|
||||||
|
1twosevensixnine4four2
|
||||||
|
1fourfzone7
|
||||||
|
cpzjzkjzkksfzv96zxfzhfzsvslbmqdshdthree
|
||||||
|
191kbfcfhtmgbrnfv26chh
|
||||||
|
vfcqrcrseven3
|
||||||
|
nine51
|
||||||
|
twosbtkk21
|
||||||
|
8twopvmrkntqlzcth9twozxrfvgmfjtqtt
|
||||||
|
sn286four1tv
|
||||||
|
xqzgxhlzjh9vnjvjcj
|
||||||
|
three24lkqphqnxmt996mhcqhpzksn2
|
||||||
|
4vpngckh
|
||||||
|
seven3v3r1eight
|
||||||
|
one9kxg
|
||||||
|
twofour4fourjcqjznsv
|
||||||
|
mnine5foureight
|
||||||
|
fourchqtjtqonesevenmb319
|
||||||
|
17sixqxxgnine4
|
||||||
|
1srrc7
|
||||||
|
8mzhtnhmshfourthree1vonet
|
||||||
|
qzppxshxfninesixk13
|
||||||
|
9sgbnnspt4seven2248
|
||||||
|
seventwo6
|
||||||
|
687541rsk
|
||||||
|
ninenineeightmgpn71five7five
|
||||||
|
eight9twonineseven4eight
|
||||||
|
ninesixnszfprlcftgcpcxdfhxs5eight
|
||||||
|
xxthree7n
|
||||||
|
tworxtcqscbc6243zhcd
|
||||||
|
two636nzhpbslxhrlkxb
|
||||||
|
six7nine
|
||||||
|
78five6one
|
||||||
|
98twokpxjvkjbxxfourlfnnttgqzh
|
||||||
|
7sevendzghjfczcmc26tkshcfhrhhzxone
|
||||||
|
fivethreethreenhfrtdtg7ninetv2fggncj
|
||||||
|
prsptrgmtbkxvrpsix39mqqbnqf4
|
||||||
|
bctcqqqjtp2jshldz
|
||||||
|
ninetffzllkztqvtm9nsbfkbbfteightsixnine
|
||||||
|
jvvcsrd1657nine
|
||||||
|
8cbltrdfzdeight8lv3q
|
||||||
|
lnine3ninenine8pczjsj
|
||||||
|
88ngpzzzvzrhqxvzcdrrln3nine
|
||||||
|
qtrbmdqgnggmjqxbx8nine1sixfive
|
||||||
|
477
|
||||||
|
tckszrqktzrbc3one5
|
||||||
|
seven5seven8mfzfzvrm2sixone
|
||||||
|
zl29fourone
|
||||||
|
lzctr93bmrgsixppljzgzrvh8
|
||||||
|
fivegqcx4fourninefour
|
||||||
|
6tmjrtfive6nine7xoneightgxv
|
||||||
|
9f
|
||||||
|
r4fstldg
|
||||||
|
twoseven7vjjfgxvq
|
||||||
|
dkpxkqnq9
|
||||||
|
kninefournineseven5twolldkfrcjk
|
||||||
|
2kfbdbfqvkqvtjleightsix
|
||||||
|
nine7gn3rphbnllpq
|
||||||
|
five12
|
||||||
|
ngpzsjttwoninefpgt549
|
||||||
|
2mdqsrrxnhn
|
||||||
|
twotmgtbxqhx2dzzjlxlc3gdrt4
|
||||||
|
7sixldnkf2four2bxjv
|
||||||
|
3nxdsdnschqpjgsbghtl65mmbsxklqr9eighttwo
|
||||||
|
doneight542nsglfmbrpzcgx2xsixnine
|
||||||
|
7ndhvcpcbncseven1
|
||||||
|
dxxzmpdbq33five
|
||||||
|
xhrfpsgdh3fourgpt1sslfnt5
|
||||||
|
dlddczbzqchdfhlnnrqcdn5
|
||||||
|
5eightthreegbqgpgsevenfourxjvzthree
|
||||||
|
4rtplhnine
|
||||||
|
twotwoonenine3
|
||||||
|
six2eightsp6
|
||||||
|
mtsixtwofour8vdfr7bndr
|
||||||
|
grrtbdjtrcfvnine7
|
||||||
|
jtzhfqsvxthree6dqcjgmj
|
||||||
|
83seventhmvgvdrx7
|
||||||
|
957six7crlxqfdbxnjhpxkstktspl
|
||||||
|
twoeightfivekmfdrttbbtwo4kzcxksbs1xsnm
|
||||||
|
8eighteightfoursixsix
|
||||||
|
eight1nine
|
||||||
|
3xdtdbq
|
||||||
|
fivepthkrnlls63pl1qhf
|
||||||
|
674fszvbrtskfmzs
|
||||||
|
jdghpqtwosix52hggmrlkhqsevenbnfdckqgr
|
||||||
|
9two89bvckm7sevenzkdfclktgc5
|
||||||
|
twosixnvqfgcht9656three
|
||||||
|
vsktxrbjgt4zxffxftwoeight21four
|
||||||
|
twofiveznfzntzteight838cppl
|
||||||
|
18three57fourseven
|
||||||
|
rnxbcmszgbeight5
|
||||||
|
twozpmknt3threecjzbcvtwo97dqzkmh
|
||||||
|
2fournine
|
||||||
|
tvngfkzgj6sixgbspfpbgzmrhlb7
|
||||||
|
162fivehtvcpsgmxz
|
||||||
|
695dcktwo
|
||||||
|
fiveseven5jzlcvxctcf
|
||||||
|
3klrsxtgbjttwo
|
||||||
|
seven17hkhpbdtonevhkgvhrzxbsix
|
||||||
|
3twos
|
||||||
|
cssixsix956xggjfzs
|
||||||
|
threetsrrchdt62cmzqzvzh
|
||||||
|
onefour3
|
||||||
|
sixzxbbplldcz5dgtrm196three
|
||||||
|
2onejstvfszgtwodclflrrdvr
|
||||||
|
9zgkcffscqfhxvlm7sbtlckone
|
||||||
|
xvnjnvctnpskzzxfl511jfkhtkxmjcdjxdxvrnzs
|
||||||
|
eight73mfsevenjjneight
|
||||||
|
ninehfqxjhsmr6foureightqptrfcvst57trlvnkfh
|
||||||
|
ct562pddspdjseven
|
||||||
|
hxcslbmf9453
|
||||||
|
seven9f2bcftjdb4hfxl
|
||||||
|
eight397qjkqvthree5dxqnrk
|
||||||
|
nnhdtvpvk1two
|
||||||
|
lp432sevenone56
|
||||||
|
mh3sixxdnpthreesix
|
||||||
|
nine9oneightgl
|
||||||
|
ktdfxvzsvhlr85tthree4
|
||||||
|
onenine5three
|
||||||
|
lggrspnkktfoureightsix9hvtgcrltthnkjk
|
||||||
|
1g
|
||||||
|
frbphfseven1rhrhxfdzctdqkctjpjknqr8
|
||||||
|
fourfourone2seven
|
||||||
|
fivefivegknxfmggnplhfhbpjvlnpxlzoneone4
|
||||||
|
gzqthree6ldltpkv5krjnslbxsmrvqqvgkpg
|
||||||
|
ninevrone66
|
||||||
|
tjsxlzd995sevendoneoneeightwod
|
||||||
|
threenstfpninetwo2
|
||||||
|
2827hsdrnndt
|
||||||
|
zeightwotjnftwoonebzsnkghseven2
|
||||||
|
7twoneightfourseven
|
||||||
|
6kdqzbngsg6eight
|
||||||
|
hxvvvrtqkvbmprqjvvsevenone9
|
||||||
|
fourfour2ninetrhcqs
|
||||||
|
sixvzbd53
|
||||||
|
mkqpshhbxnsfbfiveeighttwonvxkm4
|
||||||
|
two6pnnzxhm8kpdkhntlpqzfqlfnp
|
||||||
|
fourhgzrsplfcmjflrf174
|
||||||
|
fivefkxrdrfcr4
|
||||||
|
pqgmrvltcgphhcz55
|
||||||
|
ccrqsztx6cpxsdvjsnsevennhtxbkm
|
||||||
|
27twopnschsix79
|
||||||
|
9kvonekrjkcxlrhvgxh
|
||||||
|
7rdmxdvb34fivevn69mnhhnmtbmn
|
||||||
|
vdvttfcfdqgzpninetxbtrjkfbmninetwo9z
|
||||||
|
four2three
|
||||||
|
67vjzfsevenfivefour6rnqlv
|
||||||
|
jhqkmhpnv7
|
||||||
|
sblrrklj9twofivevqmhgjrvqjzvxqqrxqnch
|
||||||
|
5mqgbgjbztvhsixpsmmtqr
|
||||||
|
kqkpd5eightrhzmsnbsn2bpflnhtflp
|
||||||
|
dtwonerpnzkztksvrnrjktpdnstwo9hzqlsd
|
||||||
|
xqlsxtfshhgqtzzsfsdnknkfv4fiveone
|
||||||
|
fourfive64
|
||||||
|
tprjnvfeight8jf
|
||||||
|
ltvghtsvrttnhcvkldvttrpjfxrsfkscnine8ltrbclsjfour
|
||||||
|
8eight2jqrscqbkcxcone9
|
||||||
|
57mrgvrsrjkttwo26hrhlcckgcjqppczf
|
||||||
|
84scltxqgqlpxxxchmsevenlhjgreightwozs
|
||||||
|
xhdhbqzzctwoxpqrvtwovtrmtwombvgjmtb1
|
||||||
|
ninelr5
|
||||||
|
heightwo2
|
||||||
|
onevbjvninelsxlbgjqmtwojc6ksx2
|
||||||
|
dqsblgrckb6dgzhkkeightoneeight5
|
||||||
|
2lmrlthreefive6
|
||||||
|
9rgdspmxqj4ddzbn
|
||||||
|
ninehgbsixpmgjq7pddxzbvh
|
||||||
|
pnbvrppdh8
|
||||||
|
xfpnbsjjnfl7lnm
|
||||||
|
cldxp9qs
|
||||||
|
cmnoneightgkx9eight
|
||||||
|
1fbdf5two
|
||||||
|
six3eight4
|
||||||
|
8three2h2
|
||||||
|
6eightzjzhdnffnrrkbnvjlpn9seven
|
||||||
|
7dxt
|
||||||
|
dgqhqxnhgmdn9one
|
||||||
|
4fourfourbmv9gplqbjgqjdsixsdfsmrdh
|
||||||
|
8ninevqzzkgctwo4three
|
||||||
|
kkvkfivefive197qeight
|
||||||
|
djblkcrp5btpnbbvbggclpmbfbp5hz
|
||||||
|
nine59
|
||||||
|
5onex
|
||||||
|
98f71ngphthree
|
||||||
|
gs72xdvbn639
|
||||||
|
nxdqfour11six8
|
||||||
|
9dzjtskgmztkgzqsfvkljfeight
|
||||||
|
bddtwosixtwo4two1
|
||||||
|
5ninehqmqcfiveqlkszqpsnf
|
||||||
|
qjnfour84hlzgk9
|
||||||
|
8one13twofivelgdlzxtwo4
|
||||||
|
sixnrsnxdpqseven3onefour
|
||||||
|
tnine15nine9
|
||||||
|
1sixsevenzxzssq3five
|
||||||
|
vgmplmbqp6
|
||||||
|
474dkjqxponehrtzhcdkpjsixrfrhgsmpmcdj
|
||||||
|
one7vpjbptdczcjone9threekrnrvhsjseven
|
||||||
|
vtrdvvhr4one8lmp8five
|
||||||
|
seven7tjxbfourpnk7eight
|
||||||
|
two8fivefour3dcpfkvqqk3
|
||||||
|
onefivecm7seven7nxtdbxgv
|
||||||
|
2tbrjrxkcdxeight7lbqprjkv
|
||||||
|
nine9clgppmjqbczxgpm4qjcktms
|
||||||
|
ffqdvccvslnine4mpznnjkxp219seven
|
||||||
|
tworcpjshxfnf23vdvp7rzjfhlgtlf5
|
||||||
|
xc22fivecpxjlskm
|
||||||
|
8jbrzjroneninethreefivevhpp
|
||||||
|
lvvcxptngphhgfbvj25eight6sevenfive
|
||||||
|
52fpkhmsnfivesevenfivefiveksxlnznzsngs
|
||||||
|
threeonefourseventhree92hrmtkprxzrrmrhc
|
||||||
|
kjqph5mkhglseven1four
|
||||||
|
rqninehxvvslkzl62foursixxlbjnfhgnmzls
|
||||||
|
hj2eightpninefour3
|
||||||
|
8nine1
|
||||||
|
9eight12hlsbhtsshzrthreevzkpcnhkbg
|
||||||
|
twosevensevensevensixbtvdcdbhkqjlnrvn8eight
|
||||||
|
pjpzmzqgbthree3
|
||||||
|
7xpdxjpq71seven1one
|
||||||
|
7chszctznine1
|
||||||
|
gprhvmvp4
|
||||||
|
twoone8ninetxmhfhzveighteightthree
|
||||||
|
eightgccstrqxjh7
|
||||||
|
qcnbcfdhnine3qfbsxbsnhf
|
||||||
|
mmsfvcxb6fivesh
|
||||||
|
7mzzppcfblnrxkk
|
||||||
|
fourfournine6five77
|
||||||
|
zrpkzfivegkfsxcsptjvsgvdsjfgvrn83one
|
||||||
|
fourninetwo5nzp9
|
||||||
|
vpteightwo2eight7vxvlblvnnskqzdtp
|
||||||
|
sevenbfdjs36zr9791
|
||||||
|
ceightwo8nfzkthree
|
||||||
|
twocnjmjxznine9three2
|
||||||
|
seven4qxznjddnvfivesttbbgr5six
|
||||||
|
46fourvlgnzfzt
|
||||||
|
psxcxreightkqggjj823sevenlhvh1
|
||||||
|
ninethreeeight9
|
||||||
|
2glvrxgflhjbsfivefeightljtdg
|
||||||
|
fivenine4
|
||||||
|
52hgone
|
||||||
|
33fhspjthreesspqfnone
|
||||||
|
srkzqmnqgr1
|
||||||
|
gtxxbfndlssbntrnspdptjkbdxgpxgd9nlddsndjzmq
|
||||||
|
zjxvbmjbqjkdgdghplk536seven
|
||||||
|
sjdgghzkrr4rvvfx2
|
||||||
|
4eighthxxdksdtr
|
||||||
|
5two9xlrbndb8
|
||||||
|
7twoonedhdtkqj8pgcsvjmzm
|
||||||
|
76threenine2vjrcmbf2six
|
||||||
|
sixtnrf3nine
|
||||||
|
nine3onebptlmfxzhppmsprg88
|
||||||
|
sdvmxlccfjqrdzjtxgsfour5bt
|
||||||
|
sixsix53f33
|
||||||
|
eightonethreezrrlslcvsm92eight
|
||||||
|
9xfs162pmvbzzkjjksvqpcqlcdtjdrt
|
||||||
|
four93sevennine3
|
||||||
|
sjmoneight5349
|
||||||
|
scdjfs2ninesevensixnine
|
||||||
|
four38rtkvp78dbggkmbfhzeight
|
||||||
|
seven56trjmqvk5three2
|
||||||
|
qlnbmvpmdspthree5bmcz
|
||||||
|
sixxsdb6lkbrhthreesntwo
|
||||||
|
five24
|
||||||
|
eight6sgbmspbj5qrzconempkp
|
||||||
|
7nnzmtn1sixpplhjblfmknn
|
||||||
|
67seven629
|
||||||
|
8fourfouroneightr
|
||||||
|
73hq186onecmlp
|
||||||
|
sqxcqvlsmqj12
|
||||||
|
vsdztxsm837twohszjzcnghvng
|
||||||
|
6lmkngcrthreefourfivefourcfbkzlbkxlmcdzvg
|
||||||
|
onesdmsixpqdgxhhpkqxts2
|
||||||
|
threexcfjj6
|
||||||
|
tvgsxk6
|
||||||
|
jnhtlnbr1oneoneonefpkkvpmj
|
||||||
|
jdftkkjmqbtxcfpstfxseven5three
|
||||||
|
12twocjlqvcqthhndseventhreefive
|
||||||
|
fivesix7four3
|
||||||
|
7rshgk6ninevlkrt6pjfvrspvljfkf
|
||||||
|
bxjnbmgvnpsxjxqz7vkjztwo79seven
|
||||||
|
threetwo46two9bxrjsbzm
|
||||||
|
5twozhqnbx514eight19
|
||||||
|
oneseven2nine7nine1eight4
|
||||||
|
five9threekpstk
|
||||||
|
2five3cxlrbtfivethree
|
||||||
|
ljrhhfhgj3fiveeight571
|
||||||
|
65threejpr2two25
|
||||||
|
3five1threekznxssgt84
|
||||||
|
698458
|
||||||
|
194f
|
||||||
|
hxxpzlqtkninethree89fivejdthree5
|
||||||
|
frhzzhggn2qnxqklrtrvvdhvnhfkml
|
||||||
|
4lch748threeeight3
|
||||||
|
six919mkvqrbsnreight3one
|
||||||
|
three7five7seven
|
||||||
|
threetwo3
|
||||||
|
67five
|
||||||
|
sixft9
|
||||||
|
nineqrh4
|
||||||
|
mvtwone57hone3xntlkbktdcfxjhm2fsckqbcbqx
|
||||||
|
nhzhqmvvkgfourbnzrfnm5sixfivedmfqldqqzptwo
|
||||||
|
7xvmvpddlv43hkvgprfour28
|
||||||
|
brlblxt2
|
||||||
|
qqxtd9seven
|
||||||
|
sevenoneeightsixrxvhnx9g
|
||||||
|
5tjpxkgtqxn3ltnht6
|
||||||
|
sgnfscdnd52twozg
|
||||||
|
fivetwo5three5nine3fourtqdfnzgn
|
||||||
|
66mglqh5vsbqtthdbtxpztnskf1fv
|
||||||
|
xlleightwo72tctrvxfk4one
|
||||||
|
8fivedrsmv1mrcszrkjfscjztwo1
|
||||||
|
4eight92twolpbdfivecbdnjzs
|
||||||
|
pgfftmjxqzrc7sjvssvbx1ldkjp
|
||||||
|
ldvjjqgjhd9four9eightpgddrrc62
|
||||||
|
9fourfourkqgdf
|
||||||
|
five4eight9xmkzbqvtgthree7chfjlpc3
|
||||||
|
12bllmj36
|
||||||
|
mjqhmqnbhjtbxkrsrppeight2dctpspsix58
|
||||||
|
twoqblpscffvrflclttck7
|
||||||
|
21twosevenvpkzpmq
|
||||||
|
gvmtwonineseven6
|
||||||
|
twog26sixnhgnqmlninetwo
|
||||||
|
fivefiven1mqxsevenvqbkfqsrtmghfxtpsrrd8
|
||||||
|
five8oneeightsixtwocfcdgmrdsstwo
|
||||||
|
vlxxnmnineqxnsixtwogq5
|
||||||
|
2eightwos
|
||||||
|
hs4qttkxpggjtxdbzfvcd8onervnfh
|
||||||
|
lmc9
|
||||||
|
4nine1fxmkcvllvfivevqcvflgnqntwo
|
||||||
|
73cpgmckj
|
||||||
|
four7four92lfqkmgponeightbf
|
||||||
|
eight4fseven
|
||||||
|
two3sixfivebdmfkhbngrpj7nfrmj
|
||||||
|
745twovchzs3rgctnrqgt3chslcd
|
||||||
|
bgrhrgjbrtqshcg69sevensnbseven
|
||||||
|
six6sixzhf
|
||||||
|
9fourfourthree
|
||||||
|
9f93ngbbnxkpt1
|
||||||
|
fourfivesvpddkvmbchdjggrtwo7
|
||||||
|
7fourbvdtdrrxlsixkvsevenfstssflone9
|
||||||
|
eight2ninetwo
|
||||||
|
nxb9five3
|
||||||
|
one7xvtwokqnfxp
|
||||||
|
two777vrlcxfsmrcnine576
|
||||||
|
xxhmbpvr7vvppfreightthreefivefive
|
||||||
|
pcs3sxdgvtwo3
|
||||||
|
fivegpgsfjhcg1eight
|
||||||
|
nine8fzqgffnqrbdjsgxskcqxz75
|
||||||
|
tsvtwonerjmgtbzng9
|
||||||
|
6xssgdfxxssrfive
|
||||||
|
2seven42h967
|
||||||
|
63zzmdfcjtxtnineqjncktkkttjfrr
|
||||||
|
7eightfjphdvgs4nine
|
||||||
|
6dxbttshgcvfngclmhvbzfeightnine
|
||||||
|
1eightkgqtwo8twotwopss
|
||||||
|
46two
|
||||||
|
34t65six
|
||||||
|
vfh4zteightkvbpps4rxhlnctjztjfvdvdxfk
|
||||||
|
9zpdnq
|
||||||
|
4klxpvncr5
|
||||||
|
dsjmjbtvhv1fskzhvfrtc44
|
||||||
|
7two5
|
||||||
|
3lnksqznzh
|
||||||
|
five5four32two
|
||||||
|
llkbrncncr5nvsmbrzdnine6
|
||||||
|
nine57
|
||||||
|
7rdtplhbvddvlkonefqsttj
|
||||||
|
four6mssqzhgxt
|
||||||
|
gphnqxhlhzzftghk767
|
||||||
|
mbcbpjcsnt4six
|
||||||
|
one9xmhvzklmzffive1kcsixmnsbm2
|
||||||
|
1dgschj
|
||||||
|
nine8foursnczninednds
|
||||||
|
9sevensixrsrgmclkvthkgtxqtwovtlxfrdnllxvsghslh
|
||||||
|
seven443six8three31
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import { lines } from "../../../lib/typescript/helpers";
|
||||||
|
import { pipe, mapR, sum } from "../../../lib/typescript/reducers";
|
||||||
|
import { extractFirstAndLastDigit } from "../../../lib/typescript/parsers";
|
||||||
|
|
||||||
|
export const solve = pipe(
|
||||||
|
lines,
|
||||||
|
mapR(extractFirstAndLastDigit),
|
||||||
|
sum,
|
||||||
|
);
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import { lines } from "../../../lib/typescript/helpers";
|
||||||
|
import { pipe, mapR, sum } from "../../../lib/typescript/reducers";
|
||||||
|
import { extractRealFirstAndLastDigit } from "../../../lib/typescript/parsers";
|
||||||
|
|
||||||
|
export const solve = pipe(
|
||||||
|
lines,
|
||||||
|
mapR(extractRealFirstAndLastDigit),
|
||||||
|
sum,
|
||||||
|
);
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import { solve as part1 } from "./d01p1";
|
||||||
|
import { solve as part2 } from "./d01p2";
|
||||||
|
|
||||||
|
export { part1, part2 };
|
||||||
Generated
+230
@@ -0,0 +1,230 @@
|
|||||||
|
{
|
||||||
|
"name": "typescript",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"name": "typescript",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"license": "ISC",
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/node": "^20.10.1",
|
||||||
|
"ts-node": "^10.9.1",
|
||||||
|
"tsc": "^2.0.4",
|
||||||
|
"tslib": "^2.6.2",
|
||||||
|
"typescript": "^5.3.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@cspotcode/source-map-support": {
|
||||||
|
"version": "0.8.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
|
||||||
|
"integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/trace-mapping": "0.3.9"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@jridgewell/resolve-uri": {
|
||||||
|
"version": "3.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz",
|
||||||
|
"integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@jridgewell/sourcemap-codec": {
|
||||||
|
"version": "1.4.15",
|
||||||
|
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
|
||||||
|
"integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/@jridgewell/trace-mapping": {
|
||||||
|
"version": "0.3.9",
|
||||||
|
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",
|
||||||
|
"integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/resolve-uri": "^3.0.3",
|
||||||
|
"@jridgewell/sourcemap-codec": "^1.4.10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@tsconfig/node10": {
|
||||||
|
"version": "1.0.9",
|
||||||
|
"resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz",
|
||||||
|
"integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/@tsconfig/node12": {
|
||||||
|
"version": "1.0.11",
|
||||||
|
"resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz",
|
||||||
|
"integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/@tsconfig/node14": {
|
||||||
|
"version": "1.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz",
|
||||||
|
"integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/@tsconfig/node16": {
|
||||||
|
"version": "1.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz",
|
||||||
|
"integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/@types/node": {
|
||||||
|
"version": "20.10.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.1.tgz",
|
||||||
|
"integrity": "sha512-T2qwhjWwGH81vUEx4EXmBKsTJRXFXNZTL4v0gi01+zyBmCwzE6TyHszqX01m+QHTEq+EZNo13NeJIdEqf+Myrg==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"undici-types": "~5.26.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/acorn": {
|
||||||
|
"version": "8.11.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz",
|
||||||
|
"integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==",
|
||||||
|
"dev": true,
|
||||||
|
"bin": {
|
||||||
|
"acorn": "bin/acorn"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.4.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/acorn-walk": {
|
||||||
|
"version": "8.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.0.tgz",
|
||||||
|
"integrity": "sha512-FS7hV565M5l1R08MXqo8odwMTB02C2UqzB17RVgu9EyuYFBqJZ3/ZY97sQD5FewVu1UyDFc1yztUDrAwT0EypA==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.4.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/arg": {
|
||||||
|
"version": "4.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
|
||||||
|
"integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/create-require": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
|
||||||
|
"integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/diff": {
|
||||||
|
"version": "4.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
|
||||||
|
"integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.3.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/make-error": {
|
||||||
|
"version": "1.3.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
|
||||||
|
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/ts-node": {
|
||||||
|
"version": "10.9.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz",
|
||||||
|
"integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@cspotcode/source-map-support": "^0.8.0",
|
||||||
|
"@tsconfig/node10": "^1.0.7",
|
||||||
|
"@tsconfig/node12": "^1.0.7",
|
||||||
|
"@tsconfig/node14": "^1.0.0",
|
||||||
|
"@tsconfig/node16": "^1.0.2",
|
||||||
|
"acorn": "^8.4.1",
|
||||||
|
"acorn-walk": "^8.1.1",
|
||||||
|
"arg": "^4.1.0",
|
||||||
|
"create-require": "^1.1.0",
|
||||||
|
"diff": "^4.0.1",
|
||||||
|
"make-error": "^1.1.1",
|
||||||
|
"v8-compile-cache-lib": "^3.0.1",
|
||||||
|
"yn": "3.1.1"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"ts-node": "dist/bin.js",
|
||||||
|
"ts-node-cwd": "dist/bin-cwd.js",
|
||||||
|
"ts-node-esm": "dist/bin-esm.js",
|
||||||
|
"ts-node-script": "dist/bin-script.js",
|
||||||
|
"ts-node-transpile-only": "dist/bin-transpile.js",
|
||||||
|
"ts-script": "dist/bin-script-deprecated.js"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@swc/core": ">=1.2.50",
|
||||||
|
"@swc/wasm": ">=1.2.50",
|
||||||
|
"@types/node": "*",
|
||||||
|
"typescript": ">=2.7"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@swc/core": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"@swc/wasm": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/tsc": {
|
||||||
|
"version": "2.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/tsc/-/tsc-2.0.4.tgz",
|
||||||
|
"integrity": "sha512-fzoSieZI5KKJVBYGvwbVZs/J5za84f2lSTLPYf6AGiIf43tZ3GNrI1QzTLcjtyDDP4aLxd46RTZq1nQxe7+k5Q==",
|
||||||
|
"dev": true,
|
||||||
|
"bin": {
|
||||||
|
"tsc": "bin/tsc"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/tslib": {
|
||||||
|
"version": "2.6.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
|
||||||
|
"integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/typescript": {
|
||||||
|
"version": "5.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.2.tgz",
|
||||||
|
"integrity": "sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==",
|
||||||
|
"dev": true,
|
||||||
|
"bin": {
|
||||||
|
"tsc": "bin/tsc",
|
||||||
|
"tsserver": "bin/tsserver"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=14.17"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/undici-types": {
|
||||||
|
"version": "5.26.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
|
||||||
|
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/v8-compile-cache-lib": {
|
||||||
|
"version": "3.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz",
|
||||||
|
"integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/yn": {
|
||||||
|
"version": "3.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
|
||||||
|
"integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"name": "typescript",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/node": "^20.10.1",
|
||||||
|
"ts-node": "^10.9.1",
|
||||||
|
"tsc": "^2.0.4",
|
||||||
|
"tslib": "^2.6.2",
|
||||||
|
"typescript": "^5.3.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import { report } from "../../lib/typescript/logger";
|
||||||
|
import { readFIleToString as getInput } from "../../lib/typescript/fileReader";
|
||||||
|
|
||||||
|
const MIN_ARGS = 3;
|
||||||
|
|
||||||
|
(async () => {
|
||||||
|
if (process.argv.length < MIN_ARGS) console.log(`Usage: cmd [fName]\nOr: cmd [fName] -e`);
|
||||||
|
|
||||||
|
const { part1, part2 } = await import(`../typescript/${process.argv[2]}`);
|
||||||
|
const input = getInput( `../data/${process.argv[2]}${/-e\d/gi.exec(process.argv[3]) ? `.example${process.argv[3][2]}` : ""}.txt`)
|
||||||
|
|
||||||
|
report(part1(input), part2(input));
|
||||||
|
})();
|
||||||
@@ -0,0 +1,109 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
/* Visit https://aka.ms/tsconfig to read more about this file */
|
||||||
|
|
||||||
|
/* Projects */
|
||||||
|
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
||||||
|
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
||||||
|
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
|
||||||
|
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
||||||
|
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
||||||
|
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
||||||
|
|
||||||
|
/* Language and Environment */
|
||||||
|
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
||||||
|
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
||||||
|
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
||||||
|
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
||||||
|
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
||||||
|
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
||||||
|
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
||||||
|
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
|
||||||
|
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
||||||
|
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
||||||
|
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
||||||
|
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
||||||
|
|
||||||
|
/* Modules */
|
||||||
|
"module": "commonjs", /* Specify what module code is generated. */
|
||||||
|
// "rootDir": "./", /* Specify the root folder within your source files. */
|
||||||
|
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
||||||
|
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
||||||
|
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
||||||
|
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
||||||
|
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
||||||
|
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
||||||
|
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
||||||
|
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
||||||
|
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
||||||
|
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
|
||||||
|
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
||||||
|
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
||||||
|
// "resolveJsonModule": true, /* Enable importing .json files. */
|
||||||
|
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
||||||
|
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
||||||
|
|
||||||
|
/* JavaScript Support */
|
||||||
|
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
||||||
|
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
||||||
|
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
||||||
|
|
||||||
|
/* Emit */
|
||||||
|
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
||||||
|
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
||||||
|
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
||||||
|
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
||||||
|
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
||||||
|
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
||||||
|
// "outDir": "./", /* Specify an output folder for all emitted files. */
|
||||||
|
// "removeComments": true, /* Disable emitting comments. */
|
||||||
|
// "noEmit": true, /* Disable emitting files from a compilation. */
|
||||||
|
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
||||||
|
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
||||||
|
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
||||||
|
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
||||||
|
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
||||||
|
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
||||||
|
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
||||||
|
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
||||||
|
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
||||||
|
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
||||||
|
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
||||||
|
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
||||||
|
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
||||||
|
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
||||||
|
|
||||||
|
/* Interop Constraints */
|
||||||
|
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
||||||
|
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
|
||||||
|
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
||||||
|
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
||||||
|
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
||||||
|
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
||||||
|
|
||||||
|
/* Type Checking */
|
||||||
|
"strict": true, /* Enable all strict type-checking options. */
|
||||||
|
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
||||||
|
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
||||||
|
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
||||||
|
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
||||||
|
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
||||||
|
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
||||||
|
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
||||||
|
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
||||||
|
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
||||||
|
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
||||||
|
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
||||||
|
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
||||||
|
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
||||||
|
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
||||||
|
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
||||||
|
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
||||||
|
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
||||||
|
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
||||||
|
|
||||||
|
/* Completeness */
|
||||||
|
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
||||||
|
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
# Advent of Code
|
||||||
|
|
||||||
|
My solutions in various languages. Mainly used to learn the languages, or new concepts in the languages I am already familiar with.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
### TypeScript
|
||||||
|
|
||||||
|
Move to the `typescript` directory. The main entrypoint is the `runner.ts` file.
|
||||||
|
|
||||||
|
To print both solutions for some dayXX (where XX is from 01-25), enter the following command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# To run the example data input (data/dayXX.example.txt)
|
||||||
|
# Also, the Y in the `example` flag is for different example files
|
||||||
|
npx ts-node runner.ts dayXX -eY
|
||||||
|
|
||||||
|
# To run the real data
|
||||||
|
npx ts-node runner.ts dayXX
|
||||||
|
```
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
export const Y = () => 0;
|
||||||
|
|
||||||
|
export const F = (join: Function, fn1: Function, fn2: Function) => (val: any) => join(fn1(val), fn2(val));
|
||||||
|
|
||||||
|
export const C = (fn1: Function, fn2: Function) => (val: any) => fn1(fn2(val));
|
||||||
|
|
||||||
|
export const tap = (fn: Function) => (val: any) => {
|
||||||
|
fn(val);
|
||||||
|
return val;
|
||||||
|
};
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import fs from "fs";
|
||||||
|
|
||||||
|
type ReadFileToString = (fPath: string) => string;
|
||||||
|
export const readFIleToString: ReadFileToString = (fPath) =>
|
||||||
|
fs.readFileSync(fPath).toString().trim();
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
export const concatStr = (str1: string, str2: string) => str1 + str2;
|
||||||
|
|
||||||
|
export const strToNum = (str: string) => parseInt(str, 10);
|
||||||
|
|
||||||
|
export const revStr = (str: string) => str.split("").reverse().join("");
|
||||||
|
|
||||||
|
type Lines = (str: string) => string[];
|
||||||
|
export const lines: Lines = (str) => str.split("\n");
|
||||||
|
|
||||||
|
export const blocks: Lines = (str) => str.split("\n\n");
|
||||||
|
|
||||||
|
export const getMax = (arr: number[]) => Math.max(...arr);
|
||||||
|
|
||||||
|
export const sortDesc = (arr: number[]) => arr.sort((a, b) => b - a);
|
||||||
|
|
||||||
|
export const take = (n: number) => (arr: any[]) => arr.slice(0, n);
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
type Report = (r1: number, r2: number) => void;
|
||||||
|
export const report: Report = (res1, res2) => console.log(`
|
||||||
|
Part1: ${res1}
|
||||||
|
Part2: ${res2}
|
||||||
|
`);
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
import { F } from "./combinators";
|
||||||
|
import { pipe } from "./reducers";
|
||||||
|
import { concatStr, revStr, strToNum } from "./helpers";
|
||||||
|
import { exeRegex, regDigits, regDigitsReverse, firstDigitInStr, lastDigitInStr } from "./regExp";
|
||||||
|
|
||||||
|
const numbersMap = {
|
||||||
|
"one": "1",
|
||||||
|
"two": "2",
|
||||||
|
"three": "3",
|
||||||
|
"four": "4",
|
||||||
|
"five": "5",
|
||||||
|
"six": "6",
|
||||||
|
"seven": "7",
|
||||||
|
"eight": "8",
|
||||||
|
"nine": "9",
|
||||||
|
};
|
||||||
|
|
||||||
|
const getIntValue = (str: string) =>
|
||||||
|
parseInt(str) ? str : numbersMap[str as keyof typeof numbersMap];
|
||||||
|
|
||||||
|
type ExtractFLD = (str: string) => number;
|
||||||
|
export const extractFirstAndLastDigit: ExtractFLD = pipe(
|
||||||
|
F(concatStr, exeRegex(firstDigitInStr), pipe(revStr, exeRegex(lastDigitInStr))),
|
||||||
|
strToNum,
|
||||||
|
);
|
||||||
|
|
||||||
|
export const extractRealFirstAndLastDigit: ExtractFLD = pipe(
|
||||||
|
F(concatStr,
|
||||||
|
pipe(exeRegex(regDigits), getIntValue),
|
||||||
|
pipe(pipe(revStr, exeRegex(regDigitsReverse)), revStr, getIntValue)),
|
||||||
|
strToNum,
|
||||||
|
);
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
export const pipe = (...fns: any[]) => (input: any) => fns.reduce((acc, fn) => fn(acc), input);
|
||||||
|
|
||||||
|
export const mapR = (fn: Function) => (input: any) => input.map(fn);
|
||||||
|
|
||||||
|
export const sum = (arr: number[]) => arr.reduce((acc, n) => acc + n, 0);
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
type ExeRegex = (reg: RegExp) => (str: string) => string;
|
||||||
|
export const exeRegex: ExeRegex = (reg) => (str) => reg.exec(str)![0].toString();
|
||||||
|
|
||||||
|
export const regDigits = /(?<=^\w*)(\d|one|two|three|four|five|six|seven|eight|nine)/i;
|
||||||
|
|
||||||
|
export const regDigitsReverse = /(?<=^\w*)(\d|eno|owt|eerht|ruof|evif|xis|neves|thgie|enin)/i;
|
||||||
|
|
||||||
|
export const firstDigitInStr = /(?<=^\w*)\d/i;
|
||||||
|
|
||||||
|
export const lastDigitInStr = /\d(?=\w*$)/i;
|
||||||
Executable
+39
@@ -0,0 +1,39 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
while getopts y:l:d: flag
|
||||||
|
do
|
||||||
|
case "${flag}" in
|
||||||
|
y) year=${OPTARG};;
|
||||||
|
l) language=${OPTARG};;
|
||||||
|
d) day=${OPTARG};;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ ! $year || ! $language || ! $day ]]
|
||||||
|
then
|
||||||
|
echo "Invalid usage! Required flags are -y, -l and -d";
|
||||||
|
echo "Bye...";
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
|
case $language in
|
||||||
|
"ts") lang="typescript";;
|
||||||
|
*) lang="unknown";;
|
||||||
|
esac
|
||||||
|
|
||||||
|
cd $year
|
||||||
|
|
||||||
|
mkdir -p $lang/day$day
|
||||||
|
|
||||||
|
cp ../templates/$lang/* ./$lang/day$day
|
||||||
|
|
||||||
|
cd ./$lang/day$day
|
||||||
|
|
||||||
|
for f in d*.txt
|
||||||
|
do
|
||||||
|
if [[ "$f" =~ ^(d)XX(p[0-9]\.)txt$ ]]; then
|
||||||
|
mv "$f" "${BASH_REMATCH[1]}${day}${BASH_REMATCH[2]}ts"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
mv "index.txt" "index.ts"
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
import { pipe } from "../../../lib/typescript/reducers";
|
||||||
|
import { tap } from "../../../lib/typescript/combinators";
|
||||||
|
|
||||||
|
export const solve = pipe(
|
||||||
|
tap(console.log),
|
||||||
|
);
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
import { pipe } from "../../../lib/typescript/reducers";
|
||||||
|
import { tap } from "../../../lib/typescript/combinators";
|
||||||
|
|
||||||
|
export const solve = pipe(
|
||||||
|
tap(console.log),
|
||||||
|
);
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import { solve as part1 } from "./d01p1";
|
||||||
|
import { solve as part2 } from "./d01p2";
|
||||||
|
|
||||||
|
export { part1, part2 };
|
||||||
Reference in new issue
Block a user