diff --git a/daily-programmer/#390 - Number of 1s.py b/challenges/daily-programmer/#390 - Number of 1s.py similarity index 100% rename from daily-programmer/#390 - Number of 1s.py rename to challenges/daily-programmer/#390 - Number of 1s.py diff --git a/daily-programmer/#391 - ABACABA.py b/challenges/daily-programmer/#391 - ABACABA.py similarity index 100% rename from daily-programmer/#391 - ABACABA.py rename to challenges/daily-programmer/#391 - ABACABA.py diff --git a/daily-programmer/#393 - Making Change.py b/challenges/daily-programmer/#393 - Making Change.py similarity index 100% rename from daily-programmer/#393 - Making Change.py rename to challenges/daily-programmer/#393 - Making Change.py diff --git a/challenges/daily-programmer/readme.md b/challenges/daily-programmer/readme.md new file mode 100644 index 0000000..4f3bb72 --- /dev/null +++ b/challenges/daily-programmer/readme.md @@ -0,0 +1,16 @@ +
+ +

r/dailyprogrammer

+
+ +[The Subreddit](https://reddit.com/r/dailyprogrammer) + +- #390 - Number of 1s + - [Solution](%23390%20-%20Number%20of%201s.py) + - [Reddit Post](https://www.reddit.com/r/dailyprogrammer/comments/neg49j/20210517_challenge_390_difficult_number_of_1s/) +- #391 - ABACABA + - [Solution](%23391%20-%20ABACABA.py) + - [Reddit Post](https://www.reddit.com/r/dailyprogrammer/comments/njxq95/20210524_challenge_391_easy_the_abacaba_sequence/) +- #393 - Making Change + - [Solution](%23393%20-%20Making%20Change.py) + - [Reddit Post](https://www.reddit.com/r/dailyprogrammer/comments/nucsik/20210607_challenge_393_easy_making_change/) diff --git a/euler/.gitignore b/challenges/euler/.gitignore similarity index 100% rename from euler/.gitignore rename to challenges/euler/.gitignore diff --git a/euler/package.json b/challenges/euler/package.json similarity index 100% rename from euler/package.json rename to challenges/euler/package.json diff --git a/challenges/euler/pnpm-lock.yaml b/challenges/euler/pnpm-lock.yaml new file mode 100644 index 0000000..2b59a05 --- /dev/null +++ b/challenges/euler/pnpm-lock.yaml @@ -0,0 +1,452 @@ +lockfileVersion: 5.3 + +specifiers: + '@swc/core': ^1.2.125 + '@swc/helpers': ^0.3.2 + '@types/node': ^16.11.6 + chalk: ^4.1.2 + execution-time: ^1.4.1 + regenerator-runtime: ^0.13.9 + ts-node: ^10.4.0 + typescript: ^4.4.4 + +devDependencies: + '@swc/core': 1.2.125 + '@swc/helpers': 0.3.2 + '@types/node': 16.11.6 + chalk: 4.1.2 + execution-time: 1.4.1 + regenerator-runtime: 0.13.9 + ts-node: 10.4.0_626351e049b80b142acb2ce48a7f5656 + typescript: 4.4.4 + +packages: + /@cspotcode/source-map-consumer/0.8.0: + resolution: + { + integrity: sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg== + } + engines: { node: '>= 12' } + dev: true + + /@cspotcode/source-map-support/0.7.0: + resolution: + { + integrity: sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA== + } + engines: { node: '>=12' } + dependencies: + '@cspotcode/source-map-consumer': 0.8.0 + dev: true + + /@napi-rs/triples/1.1.0: + resolution: + { + integrity: sha512-XQr74QaLeMiqhStEhLn1im9EOMnkypp7MZOwQhGzqp2Weu5eQJbpPxWxixxlYRKWPOmJjsk6qYfYH9kq43yc2w== + } + dev: true + + /@node-rs/helper/1.3.0: + resolution: + { + integrity: sha512-KPS0EBA1bXtf96IL7wr5bFHxhL2KCZ6kI/hkyLG7nzEq2cDq8pJhOhcJDOLXIPh5J2LEJ5eXyjDTWDFg5eRypw== + } + dependencies: + '@napi-rs/triples': 1.1.0 + dev: true + + /@swc/core-android-arm-eabi/1.2.125: + resolution: + { + integrity: sha512-ll7G4yyRmjxRBvof9BYr+akH7RzLLXXVQ9rppykeqvJLnnvtun3Bds2Q2u35XIgJtoIDLNvP6ImZsv+I1IvgmQ== + } + engines: { node: '>=10' } + cpu: [arm] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@swc/core-android-arm64/1.2.125: + resolution: + { + integrity: sha512-q2UR+cSnZxJJ9Ooo3qY9fnjHekL+F2wEsOuWcjcPCcaF/zydHoTnqk1eAVfH047CafS443hAXTO8F+kMbVeKEg== + } + engines: { node: '>=10' } + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@swc/core-darwin-arm64/1.2.125: + resolution: + { + integrity: sha512-US2HR6scoa/l5C9NCA9YYsU89cYtXAYJq2j9vKmP27BoglxmtZyIrFFebt2ogL84g0fEcxelG0vn15RTDXbSIw== + } + engines: { node: '>=10' } + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@swc/core-darwin-x64/1.2.125: + resolution: + { + integrity: sha512-FuDgS8XwrxXMrV66MasgE3ucU/lrHUY7RK3bAdC2XelrwFgbCzOqOUwfsiGaceJa4yPlqXbfsjj5JKxXKxnDnQ== + } + engines: { node: '>=10' } + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@swc/core-freebsd-x64/1.2.125: + resolution: + { + integrity: sha512-D+K/VJzFRyDnhwAswGBrSa4G6Um+VUPRX7z29HX7KLLZTHKhnr2Rbnzu/rN4hKgf0AT93rMF21qbbmXzgtJNxA== + } + engines: { node: '>=10' } + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /@swc/core-linux-arm-gnueabihf/1.2.125: + resolution: + { + integrity: sha512-hmL+zOPlsqj5yivEDIeJbQ1sdVPG6au7RSq6yhykI9LabsrqD+oexBDjFw+oKoO4cEd50MJyiO7v241a8U9vqA== + } + engines: { node: '>=10' } + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@swc/core-linux-arm64-gnu/1.2.125: + resolution: + { + integrity: sha512-uS/ZVyXusKcyBhUTK/QiD5VJvKV+YDLCnFWKcDthsUwYSm7Ap6sJpPIoDoxG1pAaKqJdls+6TihFQNezLXyRvQ== + } + engines: { node: '>=10' } + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@swc/core-linux-arm64-musl/1.2.125: + resolution: + { + integrity: sha512-yhSkW9tyA/FCybyt2ahZStZzhNyPeGNWty/0PWSStDEd5U194BrvsdLGcj7EcAqYKkR9nhhjJSpGDY5765pCLg== + } + engines: { node: '>=10' } + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@swc/core-linux-x64-gnu/1.2.125: + resolution: + { + integrity: sha512-34u1Ujzym+rQK958/FLoh3p0tQQJYkvRlaKSbsZm2IPFeYlFFhs7g95Gfmzlm7FWpgxW/kWgPWiQyMm8zz/64A== + } + engines: { node: '>=10' } + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@swc/core-linux-x64-musl/1.2.125: + resolution: + { + integrity: sha512-6DsLBvCykRna3xP7afXGwNxNAazfsPuC54ptpSZsT02a7uy5l3vLQ+sRxqrQwAXz7AXoVQz3Zb6U8OivdpLwTg== + } + engines: { node: '>=10' } + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@swc/core-win32-arm64-msvc/1.2.125: + resolution: + { + integrity: sha512-jJfX/kc5Rnk4wYFOXyT4LK2k0gj4ygjDtEZdfTSPCogcIfWMiVA93dP81e4/R9rfUHen4jgHQBCt5FKeNXVOaQ== + } + engines: { node: '>=10' } + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@swc/core-win32-ia32-msvc/1.2.125: + resolution: + { + integrity: sha512-q9Zo4f+PlfK2806BPsTRM0C1wzchD+hdayeJ29+MnkI9LXwhziJ6RPBoCwp0s1U/ovBFVdQ/j96B5GCgD6py5Q== + } + engines: { node: '>=10' } + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@swc/core-win32-x64-msvc/1.2.125: + resolution: + { + integrity: sha512-EdO2GNHfN3g7MAHc2h2eKd52bwvyA4BgNUlixz9DQoq2hhKEsiTYmjBlxdxqu4jx1v1QMnKtzxh7iKWk3a3TSQ== + } + engines: { node: '>=10' } + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@swc/core/1.2.125: + resolution: + { + integrity: sha512-i3F9ywmT+KZjH99zXLKhp1nr0k9s4RNM1wu6b0iIBofvQe9mfvkY1KrvmQlpS+FynjkE2R3OCElgbDQuf6275w== + } + engines: { node: '>=10' } + dependencies: + '@node-rs/helper': 1.3.0 + optionalDependencies: + '@swc/core-android-arm-eabi': 1.2.125 + '@swc/core-android-arm64': 1.2.125 + '@swc/core-darwin-arm64': 1.2.125 + '@swc/core-darwin-x64': 1.2.125 + '@swc/core-freebsd-x64': 1.2.125 + '@swc/core-linux-arm-gnueabihf': 1.2.125 + '@swc/core-linux-arm64-gnu': 1.2.125 + '@swc/core-linux-arm64-musl': 1.2.125 + '@swc/core-linux-x64-gnu': 1.2.125 + '@swc/core-linux-x64-musl': 1.2.125 + '@swc/core-win32-arm64-msvc': 1.2.125 + '@swc/core-win32-ia32-msvc': 1.2.125 + '@swc/core-win32-x64-msvc': 1.2.125 + dev: true + + /@swc/helpers/0.3.2: + resolution: + { + integrity: sha512-qEru2uaH1vKZNCZR4rFCUZaflsBP7IWiGcIoQe22qi5tm+HEG/yPdhSba+ZCNTWk2xyYpx/nEFkncDY3orEx3w== + } + dev: true + + /@tsconfig/node10/1.0.8: + resolution: + { + integrity: sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg== + } + dev: true + + /@tsconfig/node12/1.0.9: + resolution: + { + integrity: sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw== + } + dev: true + + /@tsconfig/node14/1.0.1: + resolution: + { + integrity: sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg== + } + dev: true + + /@tsconfig/node16/1.0.2: + resolution: + { + integrity: sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA== + } + dev: true + + /@types/node/16.11.6: + resolution: + { + integrity: sha512-ua7PgUoeQFjmWPcoo9khiPum3Pd60k4/2ZGXt18sm2Slk0W0xZTqt5Y0Ny1NyBiN1EVQ/+FaF9NcY4Qe6rwk5w== + } + dev: true + + /acorn-walk/8.2.0: + resolution: + { + integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== + } + engines: { node: '>=0.4.0' } + dev: true + + /acorn/8.7.0: + resolution: + { + integrity: sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ== + } + engines: { node: '>=0.4.0' } + hasBin: true + dev: true + + /ansi-styles/4.3.0: + resolution: + { + integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + } + engines: { node: '>=8' } + dependencies: + color-convert: 2.0.1 + dev: true + + /arg/4.1.3: + resolution: + { + integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + } + dev: true + + /chalk/4.1.2: + resolution: + { + integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + } + engines: { node: '>=10' } + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + dev: true + + /color-convert/2.0.1: + resolution: + { + integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + } + engines: { node: '>=7.0.0' } + dependencies: + color-name: 1.1.4 + dev: true + + /color-name/1.1.4: + resolution: + { + integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + } + dev: true + + /create-require/1.1.1: + resolution: + { + integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== + } + dev: true + + /diff/4.0.2: + resolution: + { + integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + } + engines: { node: '>=0.3.1' } + dev: true + + /execution-time/1.4.1: + resolution: + { + integrity: sha512-4t9svrTtsXxAEzAs9/tm1R/Voj5AYHqxd72BiLEbGQWJq2PD3tAmW8bXI7Pp0yorjaKshT1+NyKy0ytHlKW4Pg== + } + dependencies: + pretty-hrtime: 1.0.3 + dev: true + + /has-flag/4.0.0: + resolution: + { + integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + } + engines: { node: '>=8' } + dev: true + + /make-error/1.3.6: + resolution: + { + integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== + } + dev: true + + /pretty-hrtime/1.0.3: + resolution: { integrity: sha1-t+PqQkNaTJsnWdmeDyAesZWALuE= } + engines: { node: '>= 0.8' } + dev: true + + /regenerator-runtime/0.13.9: + resolution: + { + integrity: sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA== + } + dev: true + + /supports-color/7.2.0: + resolution: + { + integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== + } + engines: { node: '>=8' } + dependencies: + has-flag: 4.0.0 + dev: true + + /ts-node/10.4.0_626351e049b80b142acb2ce48a7f5656: + resolution: + { + integrity: sha512-g0FlPvvCXSIO1JDF6S232P5jPYqBkRL9qly81ZgAOSU7rwI0stphCgd2kLiCrU9DjQCrJMWEqcNSjQL02s6d8A== + } + hasBin: true + 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 + dependencies: + '@cspotcode/source-map-support': 0.7.0 + '@swc/core': 1.2.125 + '@tsconfig/node10': 1.0.8 + '@tsconfig/node12': 1.0.9 + '@tsconfig/node14': 1.0.1 + '@tsconfig/node16': 1.0.2 + '@types/node': 16.11.6 + acorn: 8.7.0 + acorn-walk: 8.2.0 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 4.4.4 + yn: 3.1.1 + dev: true + + /typescript/4.4.4: + resolution: + { + integrity: sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA== + } + engines: { node: '>=4.2.0' } + hasBin: true + dev: true + + /yn/3.1.1: + resolution: + { + integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== + } + engines: { node: '>=6' } + dev: true diff --git a/euler/readme.md b/challenges/euler/readme.md similarity index 100% rename from euler/readme.md rename to challenges/euler/readme.md diff --git a/euler/run.js b/challenges/euler/run.js similarity index 100% rename from euler/run.js rename to challenges/euler/run.js diff --git a/euler/src/1 - Multiples of 3 or 5.ts b/challenges/euler/src/1 - Multiples of 3 or 5.ts similarity index 100% rename from euler/src/1 - Multiples of 3 or 5.ts rename to challenges/euler/src/1 - Multiples of 3 or 5.ts diff --git a/euler/src/10 - Sumation of primes.ts b/challenges/euler/src/10 - Sumation of primes.ts similarity index 89% rename from euler/src/10 - Sumation of primes.ts rename to challenges/euler/src/10 - Sumation of primes.ts index 39f88b2..46390bf 100644 --- a/euler/src/10 - Sumation of primes.ts +++ b/challenges/euler/src/10 - Sumation of primes.ts @@ -1,3 +1,4 @@ +// See https://github.com/newtykins/the-honk/tree/main/euler/thoughts/10%20-Summation%20of%29primes.md export {}; const calcSum = (numbers: number[]) => numbers.reduce((a, b) => a + b); diff --git a/euler/src/11 - Largest product in a grid.ts b/challenges/euler/src/11 - Largest product in a grid.ts similarity index 100% rename from euler/src/11 - Largest product in a grid.ts rename to challenges/euler/src/11 - Largest product in a grid.ts diff --git a/euler/src/12 - Highly divisible triangular number.ts b/challenges/euler/src/12 - Highly divisible triangular number.ts similarity index 100% rename from euler/src/12 - Highly divisible triangular number.ts rename to challenges/euler/src/12 - Highly divisible triangular number.ts diff --git a/euler/src/13 - Large sum.ts b/challenges/euler/src/13 - Large sum.ts similarity index 100% rename from euler/src/13 - Large sum.ts rename to challenges/euler/src/13 - Large sum.ts diff --git a/euler/src/14 - Longest Collatz sequence.ts b/challenges/euler/src/14 - Longest Collatz sequence.ts similarity index 100% rename from euler/src/14 - Longest Collatz sequence.ts rename to challenges/euler/src/14 - Longest Collatz sequence.ts diff --git a/euler/src/15 - Lattice paths.ts b/challenges/euler/src/15 - Lattice paths.ts similarity index 92% rename from euler/src/15 - Lattice paths.ts rename to challenges/euler/src/15 - Lattice paths.ts index 9ff61e2..3a4ebf6 100644 --- a/euler/src/15 - Lattice paths.ts +++ b/challenges/euler/src/15 - Lattice paths.ts @@ -1,4 +1,4 @@ -// See https://github.com/newtykins/the-honk/tree/main/euler/thoughts/15%20-Lattice%20Paths.md +// See https://github.com/newtykins/the-honk/tree/main/euler/thoughts/15%20-Lattice%20paths.md export {}; const factorial = (n: number) => { diff --git a/euler/src/2 - Even Fibonacci numbers.ts b/challenges/euler/src/2 - Even Fibonacci numbers.ts similarity index 100% rename from euler/src/2 - Even Fibonacci numbers.ts rename to challenges/euler/src/2 - Even Fibonacci numbers.ts diff --git a/euler/src/3 - Largest prime factor.ts b/challenges/euler/src/3 - Largest prime factor.ts similarity index 100% rename from euler/src/3 - Largest prime factor.ts rename to challenges/euler/src/3 - Largest prime factor.ts diff --git a/euler/src/4 - Largest pallindrome product.ts b/challenges/euler/src/4 - Largest pallindrome product.ts similarity index 100% rename from euler/src/4 - Largest pallindrome product.ts rename to challenges/euler/src/4 - Largest pallindrome product.ts diff --git a/euler/src/5 - Smallest multiple.ts b/challenges/euler/src/5 - Smallest multiple.ts similarity index 100% rename from euler/src/5 - Smallest multiple.ts rename to challenges/euler/src/5 - Smallest multiple.ts diff --git a/euler/src/6 - Sum square difference.ts b/challenges/euler/src/6 - Sum square difference.ts similarity index 100% rename from euler/src/6 - Sum square difference.ts rename to challenges/euler/src/6 - Sum square difference.ts diff --git a/euler/src/7 - 10001st Prime.ts b/challenges/euler/src/7 - 10001st Prime.ts similarity index 100% rename from euler/src/7 - 10001st Prime.ts rename to challenges/euler/src/7 - 10001st Prime.ts diff --git a/euler/src/8 - Largest product in a series.ts b/challenges/euler/src/8 - Largest product in a series.ts similarity index 100% rename from euler/src/8 - Largest product in a series.ts rename to challenges/euler/src/8 - Largest product in a series.ts diff --git a/euler/src/9 - Special Pythagorean triplet.ts b/challenges/euler/src/9 - Special Pythagorean triplet.ts similarity index 80% rename from euler/src/9 - Special Pythagorean triplet.ts rename to challenges/euler/src/9 - Special Pythagorean triplet.ts index 056c19e..8425d81 100644 --- a/euler/src/9 - Special Pythagorean triplet.ts +++ b/challenges/euler/src/9 - Special Pythagorean triplet.ts @@ -1,3 +1,4 @@ +// See https://github.com/newtykins/the-honk/tree/main/euler/thoughts/9%20-Special%20Pythagorean%29triplet.md export {}; const pythagoreanTriplet = (sum: number) => { diff --git a/euler/thoughts/10 - Summation of primes.md b/challenges/euler/thoughts/10 - Summation of primes.md similarity index 100% rename from euler/thoughts/10 - Summation of primes.md rename to challenges/euler/thoughts/10 - Summation of primes.md diff --git a/euler/thoughts/15 - Lattice paths.md b/challenges/euler/thoughts/15 - Lattice paths.md similarity index 100% rename from euler/thoughts/15 - Lattice paths.md rename to challenges/euler/thoughts/15 - Lattice paths.md diff --git a/euler/thoughts/9 - Special Pythagorean triplet.md b/challenges/euler/thoughts/9 - Special Pythagorean triplet.md similarity index 100% rename from euler/thoughts/9 - Special Pythagorean triplet.md rename to challenges/euler/thoughts/9 - Special Pythagorean triplet.md diff --git a/euler/thoughts/assets/15.svg b/challenges/euler/thoughts/assets/15.svg similarity index 100% rename from euler/thoughts/assets/15.svg rename to challenges/euler/thoughts/assets/15.svg diff --git a/euler/thoughts/assets/9.svg b/challenges/euler/thoughts/assets/9.svg similarity index 100% rename from euler/thoughts/assets/9.svg rename to challenges/euler/thoughts/assets/9.svg diff --git a/euler/thoughts/assets/pythagoras.svg b/challenges/euler/thoughts/assets/pythagoras.svg similarity index 100% rename from euler/thoughts/assets/pythagoras.svg rename to challenges/euler/thoughts/assets/pythagoras.svg diff --git a/euler/tsconfig.json b/challenges/euler/tsconfig.json similarity index 100% rename from euler/tsconfig.json rename to challenges/euler/tsconfig.json diff --git a/daily-programmer/readme.md b/daily-programmer/readme.md deleted file mode 100644 index 02c8ee9..0000000 --- a/daily-programmer/readme.md +++ /dev/null @@ -1,16 +0,0 @@ -
- -

r/dailyprogrammer

-
- -[The Subreddit](https://reddit.com/r/dailyprogrammer) - -- #390 - Number of 1s - - [Solution](%23390%20-%20Number%20of%201s.py) - - [Reddit Post](https://www.reddit.com/r/dailyprogrammer/comments/neg49j/20210517_challenge_390_difficult_number_of_1s/) -- #391 - ABACABA - - [Solution](%23391%20-%20ABACABA.py) - - [Reddit Post](https://www.reddit.com/r/dailyprogrammer/comments/njxq95/20210524_challenge_391_easy_the_abacaba_sequence/) -- #393 - Making Change - - [Solution](%23393%20-%20Making%20Change.py) - - [Reddit Post](https://www.reddit.com/r/dailyprogrammer/comments/nucsik/20210607_challenge_393_easy_making_change/) diff --git a/euler/pnpm-lock.yaml b/euler/pnpm-lock.yaml deleted file mode 100644 index f086289..0000000 --- a/euler/pnpm-lock.yaml +++ /dev/null @@ -1,330 +0,0 @@ -lockfileVersion: 5.3 - -specifiers: - '@swc/core': ^1.2.125 - '@swc/helpers': ^0.3.2 - '@types/node': ^16.11.6 - chalk: ^4.1.2 - execution-time: ^1.4.1 - regenerator-runtime: ^0.13.9 - ts-node: ^10.4.0 - typescript: ^4.4.4 - -devDependencies: - '@swc/core': 1.2.125 - '@swc/helpers': 0.3.2 - '@types/node': 16.11.6 - chalk: 4.1.2 - execution-time: 1.4.1 - regenerator-runtime: 0.13.9 - ts-node: 10.4.0_626351e049b80b142acb2ce48a7f5656 - typescript: 4.4.4 - -packages: - - /@cspotcode/source-map-consumer/0.8.0: - resolution: {integrity: sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==} - engines: {node: '>= 12'} - dev: true - - /@cspotcode/source-map-support/0.7.0: - resolution: {integrity: sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==} - engines: {node: '>=12'} - dependencies: - '@cspotcode/source-map-consumer': 0.8.0 - dev: true - - /@napi-rs/triples/1.1.0: - resolution: {integrity: sha512-XQr74QaLeMiqhStEhLn1im9EOMnkypp7MZOwQhGzqp2Weu5eQJbpPxWxixxlYRKWPOmJjsk6qYfYH9kq43yc2w==} - dev: true - - /@node-rs/helper/1.3.0: - resolution: {integrity: sha512-KPS0EBA1bXtf96IL7wr5bFHxhL2KCZ6kI/hkyLG7nzEq2cDq8pJhOhcJDOLXIPh5J2LEJ5eXyjDTWDFg5eRypw==} - dependencies: - '@napi-rs/triples': 1.1.0 - dev: true - - /@swc/core-android-arm-eabi/1.2.125: - resolution: {integrity: sha512-ll7G4yyRmjxRBvof9BYr+akH7RzLLXXVQ9rppykeqvJLnnvtun3Bds2Q2u35XIgJtoIDLNvP6ImZsv+I1IvgmQ==} - engines: {node: '>=10'} - cpu: [arm] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@swc/core-android-arm64/1.2.125: - resolution: {integrity: sha512-q2UR+cSnZxJJ9Ooo3qY9fnjHekL+F2wEsOuWcjcPCcaF/zydHoTnqk1eAVfH047CafS443hAXTO8F+kMbVeKEg==} - engines: {node: '>=10'} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@swc/core-darwin-arm64/1.2.125: - resolution: {integrity: sha512-US2HR6scoa/l5C9NCA9YYsU89cYtXAYJq2j9vKmP27BoglxmtZyIrFFebt2ogL84g0fEcxelG0vn15RTDXbSIw==} - engines: {node: '>=10'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@swc/core-darwin-x64/1.2.125: - resolution: {integrity: sha512-FuDgS8XwrxXMrV66MasgE3ucU/lrHUY7RK3bAdC2XelrwFgbCzOqOUwfsiGaceJa4yPlqXbfsjj5JKxXKxnDnQ==} - engines: {node: '>=10'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@swc/core-freebsd-x64/1.2.125: - resolution: {integrity: sha512-D+K/VJzFRyDnhwAswGBrSa4G6Um+VUPRX7z29HX7KLLZTHKhnr2Rbnzu/rN4hKgf0AT93rMF21qbbmXzgtJNxA==} - engines: {node: '>=10'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /@swc/core-linux-arm-gnueabihf/1.2.125: - resolution: {integrity: sha512-hmL+zOPlsqj5yivEDIeJbQ1sdVPG6au7RSq6yhykI9LabsrqD+oexBDjFw+oKoO4cEd50MJyiO7v241a8U9vqA==} - engines: {node: '>=10'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@swc/core-linux-arm64-gnu/1.2.125: - resolution: {integrity: sha512-uS/ZVyXusKcyBhUTK/QiD5VJvKV+YDLCnFWKcDthsUwYSm7Ap6sJpPIoDoxG1pAaKqJdls+6TihFQNezLXyRvQ==} - engines: {node: '>=10'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@swc/core-linux-arm64-musl/1.2.125: - resolution: {integrity: sha512-yhSkW9tyA/FCybyt2ahZStZzhNyPeGNWty/0PWSStDEd5U194BrvsdLGcj7EcAqYKkR9nhhjJSpGDY5765pCLg==} - engines: {node: '>=10'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@swc/core-linux-x64-gnu/1.2.125: - resolution: {integrity: sha512-34u1Ujzym+rQK958/FLoh3p0tQQJYkvRlaKSbsZm2IPFeYlFFhs7g95Gfmzlm7FWpgxW/kWgPWiQyMm8zz/64A==} - engines: {node: '>=10'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@swc/core-linux-x64-musl/1.2.125: - resolution: {integrity: sha512-6DsLBvCykRna3xP7afXGwNxNAazfsPuC54ptpSZsT02a7uy5l3vLQ+sRxqrQwAXz7AXoVQz3Zb6U8OivdpLwTg==} - engines: {node: '>=10'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@swc/core-win32-arm64-msvc/1.2.125: - resolution: {integrity: sha512-jJfX/kc5Rnk4wYFOXyT4LK2k0gj4ygjDtEZdfTSPCogcIfWMiVA93dP81e4/R9rfUHen4jgHQBCt5FKeNXVOaQ==} - engines: {node: '>=10'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@swc/core-win32-ia32-msvc/1.2.125: - resolution: {integrity: sha512-q9Zo4f+PlfK2806BPsTRM0C1wzchD+hdayeJ29+MnkI9LXwhziJ6RPBoCwp0s1U/ovBFVdQ/j96B5GCgD6py5Q==} - engines: {node: '>=10'} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@swc/core-win32-x64-msvc/1.2.125: - resolution: {integrity: sha512-EdO2GNHfN3g7MAHc2h2eKd52bwvyA4BgNUlixz9DQoq2hhKEsiTYmjBlxdxqu4jx1v1QMnKtzxh7iKWk3a3TSQ==} - engines: {node: '>=10'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@swc/core/1.2.125: - resolution: {integrity: sha512-i3F9ywmT+KZjH99zXLKhp1nr0k9s4RNM1wu6b0iIBofvQe9mfvkY1KrvmQlpS+FynjkE2R3OCElgbDQuf6275w==} - engines: {node: '>=10'} - dependencies: - '@node-rs/helper': 1.3.0 - optionalDependencies: - '@swc/core-android-arm-eabi': 1.2.125 - '@swc/core-android-arm64': 1.2.125 - '@swc/core-darwin-arm64': 1.2.125 - '@swc/core-darwin-x64': 1.2.125 - '@swc/core-freebsd-x64': 1.2.125 - '@swc/core-linux-arm-gnueabihf': 1.2.125 - '@swc/core-linux-arm64-gnu': 1.2.125 - '@swc/core-linux-arm64-musl': 1.2.125 - '@swc/core-linux-x64-gnu': 1.2.125 - '@swc/core-linux-x64-musl': 1.2.125 - '@swc/core-win32-arm64-msvc': 1.2.125 - '@swc/core-win32-ia32-msvc': 1.2.125 - '@swc/core-win32-x64-msvc': 1.2.125 - dev: true - - /@swc/helpers/0.3.2: - resolution: {integrity: sha512-qEru2uaH1vKZNCZR4rFCUZaflsBP7IWiGcIoQe22qi5tm+HEG/yPdhSba+ZCNTWk2xyYpx/nEFkncDY3orEx3w==} - dev: true - - /@tsconfig/node10/1.0.8: - resolution: {integrity: sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==} - dev: true - - /@tsconfig/node12/1.0.9: - resolution: {integrity: sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==} - dev: true - - /@tsconfig/node14/1.0.1: - resolution: {integrity: sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==} - dev: true - - /@tsconfig/node16/1.0.2: - resolution: {integrity: sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==} - dev: true - - /@types/node/16.11.6: - resolution: {integrity: sha512-ua7PgUoeQFjmWPcoo9khiPum3Pd60k4/2ZGXt18sm2Slk0W0xZTqt5Y0Ny1NyBiN1EVQ/+FaF9NcY4Qe6rwk5w==} - dev: true - - /acorn-walk/8.2.0: - resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} - engines: {node: '>=0.4.0'} - dev: true - - /acorn/8.7.0: - resolution: {integrity: sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==} - engines: {node: '>=0.4.0'} - hasBin: true - dev: true - - /ansi-styles/4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} - engines: {node: '>=8'} - dependencies: - color-convert: 2.0.1 - dev: true - - /arg/4.1.3: - resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} - dev: true - - /chalk/4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} - engines: {node: '>=10'} - dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 - dev: true - - /color-convert/2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} - engines: {node: '>=7.0.0'} - dependencies: - color-name: 1.1.4 - dev: true - - /color-name/1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - dev: true - - /create-require/1.1.1: - resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} - dev: true - - /diff/4.0.2: - resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} - engines: {node: '>=0.3.1'} - dev: true - - /execution-time/1.4.1: - resolution: {integrity: sha512-4t9svrTtsXxAEzAs9/tm1R/Voj5AYHqxd72BiLEbGQWJq2PD3tAmW8bXI7Pp0yorjaKshT1+NyKy0ytHlKW4Pg==} - dependencies: - pretty-hrtime: 1.0.3 - dev: true - - /has-flag/4.0.0: - resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} - engines: {node: '>=8'} - dev: true - - /make-error/1.3.6: - resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} - dev: true - - /pretty-hrtime/1.0.3: - resolution: {integrity: sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=} - engines: {node: '>= 0.8'} - dev: true - - /regenerator-runtime/0.13.9: - resolution: {integrity: sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==} - dev: true - - /supports-color/7.2.0: - resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} - engines: {node: '>=8'} - dependencies: - has-flag: 4.0.0 - dev: true - - /ts-node/10.4.0_626351e049b80b142acb2ce48a7f5656: - resolution: {integrity: sha512-g0FlPvvCXSIO1JDF6S232P5jPYqBkRL9qly81ZgAOSU7rwI0stphCgd2kLiCrU9DjQCrJMWEqcNSjQL02s6d8A==} - hasBin: true - 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 - dependencies: - '@cspotcode/source-map-support': 0.7.0 - '@swc/core': 1.2.125 - '@tsconfig/node10': 1.0.8 - '@tsconfig/node12': 1.0.9 - '@tsconfig/node14': 1.0.1 - '@tsconfig/node16': 1.0.2 - '@types/node': 16.11.6 - acorn: 8.7.0 - acorn-walk: 8.2.0 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 4.4.4 - yn: 3.1.1 - dev: true - - /typescript/4.4.4: - resolution: {integrity: sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==} - engines: {node: '>=4.2.0'} - hasBin: true - dev: true - - /yn/3.1.1: - resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} - engines: {node: '>=6'} - dev: true diff --git a/c/algorithms/binary-search.c b/languages/c/algorithms/binary-search.c similarity index 100% rename from c/algorithms/binary-search.c rename to languages/c/algorithms/binary-search.c diff --git a/c/calculators/helpers/factorial.c b/languages/c/calculators/helpers/factorial.c similarity index 100% rename from c/calculators/helpers/factorial.c rename to languages/c/calculators/helpers/factorial.c diff --git a/c/calculators/ncr.c b/languages/c/calculators/ncr.c similarity index 100% rename from c/calculators/ncr.c rename to languages/c/calculators/ncr.c diff --git a/java/calculators/ncr.java b/languages/java/calculators/ncr.java similarity index 100% rename from java/calculators/ncr.java rename to languages/java/calculators/ncr.java diff --git a/python/calculators/Binomial Distribution.py b/languages/python/calculators/Binomial Distribution.py similarity index 100% rename from python/calculators/Binomial Distribution.py rename to languages/python/calculators/Binomial Distribution.py diff --git a/python/calculators/Karatsuba Algorithm.md b/languages/python/calculators/Karatsuba Algorithm.md similarity index 84% rename from python/calculators/Karatsuba Algorithm.md rename to languages/python/calculators/Karatsuba Algorithm.md index 21954e0..91cee63 100644 --- a/python/calculators/Karatsuba Algorithm.md +++ b/languages/python/calculators/Karatsuba Algorithm.md @@ -1,7 +1,7 @@ ### Useful Links -- [Wikipedia](https://en.wikipedia.org/wiki/Karatsuba_algorithm) -- [An amazing video on the topic](https://youtu.be/cCKOl5li6YM) +- [Wikipedia](https://en.wikipedia.org/wiki/Karatsuba_algorithm) +- [An amazing video on the topic](https://youtu.be/cCKOl5li6YM) ### The Pseudocode diff --git a/python/calculators/Karatsuba Algorithm.py b/languages/python/calculators/Karatsuba Algorithm.py similarity index 100% rename from python/calculators/Karatsuba Algorithm.py rename to languages/python/calculators/Karatsuba Algorithm.py diff --git a/python/calculators/PMCC.py b/languages/python/calculators/PMCC.py similarity index 100% rename from python/calculators/PMCC.py rename to languages/python/calculators/PMCC.py diff --git a/python/calculators/Pascal's Triangle.py b/languages/python/calculators/Pascal's Triangle.py similarity index 100% rename from python/calculators/Pascal's Triangle.py rename to languages/python/calculators/Pascal's Triangle.py diff --git a/python/calculators/Quadratic nth Term.py b/languages/python/calculators/Quadratic nth Term.py similarity index 100% rename from python/calculators/Quadratic nth Term.py rename to languages/python/calculators/Quadratic nth Term.py diff --git a/python/calculators/SQRT.py b/languages/python/calculators/SQRT.py similarity index 100% rename from python/calculators/SQRT.py rename to languages/python/calculators/SQRT.py diff --git a/python/calculators/SRCC.py b/languages/python/calculators/SRCC.py similarity index 100% rename from python/calculators/SRCC.py rename to languages/python/calculators/SRCC.py diff --git a/python/calculators/STDEV.py b/languages/python/calculators/STDEV.py similarity index 100% rename from python/calculators/STDEV.py rename to languages/python/calculators/STDEV.py diff --git a/python/calculators/Trigometric Functions.py b/languages/python/calculators/Trigometric Functions.py similarity index 100% rename from python/calculators/Trigometric Functions.py rename to languages/python/calculators/Trigometric Functions.py diff --git a/python/calculators/_helpers/__init__.py b/languages/python/calculators/_helpers/__init__.py similarity index 100% rename from python/calculators/_helpers/__init__.py rename to languages/python/calculators/_helpers/__init__.py diff --git a/python/calculators/_helpers/floatInput.py b/languages/python/calculators/_helpers/floatInput.py similarity index 100% rename from python/calculators/_helpers/floatInput.py rename to languages/python/calculators/_helpers/floatInput.py diff --git a/python/calculators/_helpers/intInput.py b/languages/python/calculators/_helpers/intInput.py similarity index 100% rename from python/calculators/_helpers/intInput.py rename to languages/python/calculators/_helpers/intInput.py diff --git a/python/calculators/_helpers/listInput.py b/languages/python/calculators/_helpers/listInput.py similarity index 100% rename from python/calculators/_helpers/listInput.py rename to languages/python/calculators/_helpers/listInput.py diff --git a/python/calculators/readme.md b/languages/python/calculators/readme.md similarity index 86% rename from python/calculators/readme.md rename to languages/python/calculators/readme.md index bb7e68b..f644b30 100644 --- a/python/calculators/readme.md +++ b/languages/python/calculators/readme.md @@ -6,8 +6,8 @@ Some extra information on the more complex topics (: ### Useful Links -- [Wikipedia](https://en.wikipedia.org/wiki/Karatsuba_algorithm) -- [An amazing video on the topic](https://youtu.be/cCKOl5li6YM) +- [Wikipedia](https://en.wikipedia.org/wiki/Karatsuba_algorithm) +- [An amazing video on the topic](https://youtu.be/cCKOl5li6YM) ### The Pseudocode diff --git a/python/data-science/Fake Jobs.py b/languages/python/data-science/Fake Jobs.py similarity index 100% rename from python/data-science/Fake Jobs.py rename to languages/python/data-science/Fake Jobs.py diff --git a/python/data-science/Twitch Revenue.py b/languages/python/data-science/Twitch Revenue.py similarity index 100% rename from python/data-science/Twitch Revenue.py rename to languages/python/data-science/Twitch Revenue.py diff --git a/python/data-science/facebook.csv b/languages/python/data-science/facebook.csv similarity index 100% rename from python/data-science/facebook.csv rename to languages/python/data-science/facebook.csv diff --git a/python/data-science/facebook.py b/languages/python/data-science/facebook.py similarity index 100% rename from python/data-science/facebook.py rename to languages/python/data-science/facebook.py diff --git a/python/data-science/fakejobs.csv b/languages/python/data-science/fakejobs.csv similarity index 100% rename from python/data-science/fakejobs.csv rename to languages/python/data-science/fakejobs.csv diff --git a/python/data-science/ngrams/comparison/comparison.py b/languages/python/data-science/ngrams/comparison/comparison.py similarity index 100% rename from python/data-science/ngrams/comparison/comparison.py rename to languages/python/data-science/ngrams/comparison/comparison.py diff --git a/python/data-science/ngrams/comparison/dubious, orangutan, round, mockingjay, aloof - 1800-2019.csv b/languages/python/data-science/ngrams/comparison/dubious, orangutan, round, mockingjay, aloof - 1800-2019.csv similarity index 100% rename from python/data-science/ngrams/comparison/dubious, orangutan, round, mockingjay, aloof - 1800-2019.csv rename to languages/python/data-science/ngrams/comparison/dubious, orangutan, round, mockingjay, aloof - 1800-2019.csv diff --git a/python/data-science/ngrams/comparison/dubious, orangutan, round, mockingjay, aloof - 1800-2019.png b/languages/python/data-science/ngrams/comparison/dubious, orangutan, round, mockingjay, aloof - 1800-2019.png similarity index 100% rename from python/data-science/ngrams/comparison/dubious, orangutan, round, mockingjay, aloof - 1800-2019.png rename to languages/python/data-science/ngrams/comparison/dubious, orangutan, round, mockingjay, aloof - 1800-2019.png diff --git a/python/data-science/ngrams/comparison/hallo, hello - 1500-1800.csv b/languages/python/data-science/ngrams/comparison/hallo, hello - 1500-1800.csv similarity index 100% rename from python/data-science/ngrams/comparison/hallo, hello - 1500-1800.csv rename to languages/python/data-science/ngrams/comparison/hallo, hello - 1500-1800.csv diff --git a/python/data-science/ngrams/comparison/hallo, hello - 1500-1800.png b/languages/python/data-science/ngrams/comparison/hallo, hello - 1500-1800.png similarity index 100% rename from python/data-science/ngrams/comparison/hallo, hello - 1500-1800.png rename to languages/python/data-science/ngrams/comparison/hallo, hello - 1500-1800.png diff --git a/python/data-science/ngrams/comparison/metropolis, birthday, acidic, bell, weed - 1800-2019.csv b/languages/python/data-science/ngrams/comparison/metropolis, birthday, acidic, bell, weed - 1800-2019.csv similarity index 100% rename from python/data-science/ngrams/comparison/metropolis, birthday, acidic, bell, weed - 1800-2019.csv rename to languages/python/data-science/ngrams/comparison/metropolis, birthday, acidic, bell, weed - 1800-2019.csv diff --git a/python/data-science/ngrams/comparison/metropolis, birthday, acidic, bell, weed - 1800-2019.png b/languages/python/data-science/ngrams/comparison/metropolis, birthday, acidic, bell, weed - 1800-2019.png similarity index 100% rename from python/data-science/ngrams/comparison/metropolis, birthday, acidic, bell, weed - 1800-2019.png rename to languages/python/data-science/ngrams/comparison/metropolis, birthday, acidic, bell, weed - 1800-2019.png diff --git a/python/data-science/ngrams/comparison/poop, klutzy - 1800-2019.csv b/languages/python/data-science/ngrams/comparison/poop, klutzy - 1800-2019.csv similarity index 100% rename from python/data-science/ngrams/comparison/poop, klutzy - 1800-2019.csv rename to languages/python/data-science/ngrams/comparison/poop, klutzy - 1800-2019.csv diff --git a/python/data-science/ngrams/comparison/poop, klutzy - 1800-2019.png b/languages/python/data-science/ngrams/comparison/poop, klutzy - 1800-2019.png similarity index 100% rename from python/data-science/ngrams/comparison/poop, klutzy - 1800-2019.png rename to languages/python/data-science/ngrams/comparison/poop, klutzy - 1800-2019.png diff --git a/python/data-science/ngrams/comparison/shuffle, metal, cancer, tumour, milk, gelatinous - 1800-2019.csv b/languages/python/data-science/ngrams/comparison/shuffle, metal, cancer, tumour, milk, gelatinous - 1800-2019.csv similarity index 100% rename from python/data-science/ngrams/comparison/shuffle, metal, cancer, tumour, milk, gelatinous - 1800-2019.csv rename to languages/python/data-science/ngrams/comparison/shuffle, metal, cancer, tumour, milk, gelatinous - 1800-2019.csv diff --git a/python/data-science/ngrams/comparison/shuffle, metal, cancer, tumour, milk, gelatinous - 1800-2019.png b/languages/python/data-science/ngrams/comparison/shuffle, metal, cancer, tumour, milk, gelatinous - 1800-2019.png similarity index 100% rename from python/data-science/ngrams/comparison/shuffle, metal, cancer, tumour, milk, gelatinous - 1800-2019.png rename to languages/python/data-science/ngrams/comparison/shuffle, metal, cancer, tumour, milk, gelatinous - 1800-2019.png diff --git a/python/data-science/ngrams/comparison/spectacle, barrel, crosshair, glue, gluestick - 1800-2019.csv b/languages/python/data-science/ngrams/comparison/spectacle, barrel, crosshair, glue, gluestick - 1800-2019.csv similarity index 100% rename from python/data-science/ngrams/comparison/spectacle, barrel, crosshair, glue, gluestick - 1800-2019.csv rename to languages/python/data-science/ngrams/comparison/spectacle, barrel, crosshair, glue, gluestick - 1800-2019.csv diff --git a/python/data-science/ngrams/comparison/spectacle, barrel, crosshair, glue, gluestick - 1800-2019.png b/languages/python/data-science/ngrams/comparison/spectacle, barrel, crosshair, glue, gluestick - 1800-2019.png similarity index 100% rename from python/data-science/ngrams/comparison/spectacle, barrel, crosshair, glue, gluestick - 1800-2019.png rename to languages/python/data-science/ngrams/comparison/spectacle, barrel, crosshair, glue, gluestick - 1800-2019.png diff --git a/python/data-science/ngrams/popularity/hallo - 1500-1800.png b/languages/python/data-science/ngrams/popularity/hallo - 1500-1800.png similarity index 100% rename from python/data-science/ngrams/popularity/hallo - 1500-1800.png rename to languages/python/data-science/ngrams/popularity/hallo - 1500-1800.png diff --git a/python/data-science/ngrams/popularity/popularity.py b/languages/python/data-science/ngrams/popularity/popularity.py similarity index 100% rename from python/data-science/ngrams/popularity/popularity.py rename to languages/python/data-science/ngrams/popularity/popularity.py diff --git a/python/data-science/ngrams/popularity/terrified - 1800-2019.png b/languages/python/data-science/ngrams/popularity/terrified - 1800-2019.png similarity index 100% rename from python/data-science/ngrams/popularity/terrified - 1800-2019.png rename to languages/python/data-science/ngrams/popularity/terrified - 1800-2019.png diff --git a/python/data-science/twitchrevenue.csv b/languages/python/data-science/twitchrevenue.csv similarity index 100% rename from python/data-science/twitchrevenue.csv rename to languages/python/data-science/twitchrevenue.csv diff --git a/python/gd-two-star-list/2stars.csv b/languages/python/gd-two-star-list/2stars.csv similarity index 100% rename from python/gd-two-star-list/2stars.csv rename to languages/python/gd-two-star-list/2stars.csv diff --git a/python/gd-two-star-list/script.py b/languages/python/gd-two-star-list/script.py similarity index 100% rename from python/gd-two-star-list/script.py rename to languages/python/gd-two-star-list/script.py diff --git a/python/pong/Ball.py b/languages/python/pong/Ball.py similarity index 100% rename from python/pong/Ball.py rename to languages/python/pong/Ball.py diff --git a/python/pong/Paddle.py b/languages/python/pong/Paddle.py similarity index 100% rename from python/pong/Paddle.py rename to languages/python/pong/Paddle.py diff --git a/python/pong/Pong.py b/languages/python/pong/Pong.py similarity index 100% rename from python/pong/Pong.py rename to languages/python/pong/Pong.py diff --git a/python/pp.py b/languages/python/pp.py similarity index 100% rename from python/pp.py rename to languages/python/pp.py diff --git a/python/pythonchallenge.com/0.jpg b/languages/python/pythonchallenge.com/0.jpg similarity index 100% rename from python/pythonchallenge.com/0.jpg rename to languages/python/pythonchallenge.com/0.jpg diff --git a/python/pythonchallenge.com/1 - Map.py b/languages/python/pythonchallenge.com/1 - Map.py similarity index 100% rename from python/pythonchallenge.com/1 - Map.py rename to languages/python/pythonchallenge.com/1 - Map.py diff --git a/python/pythonchallenge.com/1.jpg b/languages/python/pythonchallenge.com/1.jpg similarity index 100% rename from python/pythonchallenge.com/1.jpg rename to languages/python/pythonchallenge.com/1.jpg diff --git a/python/pythonchallenge.com/10 - Bull.py b/languages/python/pythonchallenge.com/10 - Bull.py similarity index 100% rename from python/pythonchallenge.com/10 - Bull.py rename to languages/python/pythonchallenge.com/10 - Bull.py diff --git a/python/pythonchallenge.com/11 - 5808.py b/languages/python/pythonchallenge.com/11 - 5808.py similarity index 100% rename from python/pythonchallenge.com/11 - 5808.py rename to languages/python/pythonchallenge.com/11 - 5808.py diff --git a/python/pythonchallenge.com/12 - Evil.py b/languages/python/pythonchallenge.com/12 - Evil.py similarity index 100% rename from python/pythonchallenge.com/12 - Evil.py rename to languages/python/pythonchallenge.com/12 - Evil.py diff --git a/python/pythonchallenge.com/13 - Disproportional.py b/languages/python/pythonchallenge.com/13 - Disproportional.py similarity index 100% rename from python/pythonchallenge.com/13 - Disproportional.py rename to languages/python/pythonchallenge.com/13 - Disproportional.py diff --git a/python/pythonchallenge.com/14 - Italy.py b/languages/python/pythonchallenge.com/14 - Italy.py similarity index 100% rename from python/pythonchallenge.com/14 - Italy.py rename to languages/python/pythonchallenge.com/14 - Italy.py diff --git a/python/pythonchallenge.com/2 - OCR.py b/languages/python/pythonchallenge.com/2 - OCR.py similarity index 100% rename from python/pythonchallenge.com/2 - OCR.py rename to languages/python/pythonchallenge.com/2 - OCR.py diff --git a/python/pythonchallenge.com/2.jpg b/languages/python/pythonchallenge.com/2.jpg similarity index 100% rename from python/pythonchallenge.com/2.jpg rename to languages/python/pythonchallenge.com/2.jpg diff --git a/python/pythonchallenge.com/3 - Equality.py b/languages/python/pythonchallenge.com/3 - Equality.py similarity index 100% rename from python/pythonchallenge.com/3 - Equality.py rename to languages/python/pythonchallenge.com/3 - Equality.py diff --git a/python/pythonchallenge.com/3.jpg b/languages/python/pythonchallenge.com/3.jpg similarity index 100% rename from python/pythonchallenge.com/3.jpg rename to languages/python/pythonchallenge.com/3.jpg diff --git a/python/pythonchallenge.com/4 - linkedlist.py b/languages/python/pythonchallenge.com/4 - linkedlist.py similarity index 100% rename from python/pythonchallenge.com/4 - linkedlist.py rename to languages/python/pythonchallenge.com/4 - linkedlist.py diff --git a/python/pythonchallenge.com/4.jpg b/languages/python/pythonchallenge.com/4.jpg similarity index 100% rename from python/pythonchallenge.com/4.jpg rename to languages/python/pythonchallenge.com/4.jpg diff --git a/python/pythonchallenge.com/5 - Peak Hell.py b/languages/python/pythonchallenge.com/5 - Peak Hell.py similarity index 100% rename from python/pythonchallenge.com/5 - Peak Hell.py rename to languages/python/pythonchallenge.com/5 - Peak Hell.py diff --git a/python/pythonchallenge.com/6 - Channel.py b/languages/python/pythonchallenge.com/6 - Channel.py similarity index 100% rename from python/pythonchallenge.com/6 - Channel.py rename to languages/python/pythonchallenge.com/6 - Channel.py diff --git a/python/pythonchallenge.com/7 - Oxygen.py b/languages/python/pythonchallenge.com/7 - Oxygen.py similarity index 100% rename from python/pythonchallenge.com/7 - Oxygen.py rename to languages/python/pythonchallenge.com/7 - Oxygen.py diff --git a/python/pythonchallenge.com/8 - Integrity.py b/languages/python/pythonchallenge.com/8 - Integrity.py similarity index 100% rename from python/pythonchallenge.com/8 - Integrity.py rename to languages/python/pythonchallenge.com/8 - Integrity.py diff --git a/python/pythonchallenge.com/9 - Good.py b/languages/python/pythonchallenge.com/9 - Good.py similarity index 100% rename from python/pythonchallenge.com/9 - Good.py rename to languages/python/pythonchallenge.com/9 - Good.py diff --git a/python/pythonchallenge.com/cave.jpg b/languages/python/pythonchallenge.com/cave.jpg similarity index 100% rename from python/pythonchallenge.com/cave.jpg rename to languages/python/pythonchallenge.com/cave.jpg diff --git a/python/pythonchallenge.com/channel.zip b/languages/python/pythonchallenge.com/channel.zip similarity index 100% rename from python/pythonchallenge.com/channel.zip rename to languages/python/pythonchallenge.com/channel.zip diff --git a/python/pythonchallenge.com/equality.txt b/languages/python/pythonchallenge.com/equality.txt similarity index 100% rename from python/pythonchallenge.com/equality.txt rename to languages/python/pythonchallenge.com/equality.txt diff --git a/python/pythonchallenge.com/even.jpg b/languages/python/pythonchallenge.com/even.jpg similarity index 100% rename from python/pythonchallenge.com/even.jpg rename to languages/python/pythonchallenge.com/even.jpg diff --git a/python/pythonchallenge.com/evil2.gfx b/languages/python/pythonchallenge.com/evil2.gfx similarity index 100% rename from python/pythonchallenge.com/evil2.gfx rename to languages/python/pythonchallenge.com/evil2.gfx diff --git a/python/pythonchallenge.com/level14.jpg b/languages/python/pythonchallenge.com/level14.jpg similarity index 100% rename from python/pythonchallenge.com/level14.jpg rename to languages/python/pythonchallenge.com/level14.jpg diff --git a/python/pythonchallenge.com/odd.jpg b/languages/python/pythonchallenge.com/odd.jpg similarity index 100% rename from python/pythonchallenge.com/odd.jpg rename to languages/python/pythonchallenge.com/odd.jpg diff --git a/python/pythonchallenge.com/oxygen.png b/languages/python/pythonchallenge.com/oxygen.png similarity index 100% rename from python/pythonchallenge.com/oxygen.png rename to languages/python/pythonchallenge.com/oxygen.png diff --git a/languages/python/pythonchallenge.com/readme.md b/languages/python/pythonchallenge.com/readme.md new file mode 100644 index 0000000..d73b323 --- /dev/null +++ b/languages/python/pythonchallenge.com/readme.md @@ -0,0 +1,19 @@ +
+ +

pythonchallenge.com

+
+ +- [1 - Map](1%20-%20Map.py) +- [2 - OCR](2%20-%20OCR.py) +- [3 - Equality](3%20-%20Equality.py) +- [4 - linkedlist](4%20-%20linkedlist.py) +- [5 - Peak Hell](5%20-%20Peak%20Hell.py) +- [6 - Channel](6%20-%20Channel.py) +- [7 - Oxygen](7%20-%20Oxygen.py) +- [8 - Integrity](8%20-%20Integrity.py) +- [9 - Good](9%20-%20Good.py) +- [10 - Bull](10%20-%20Bull.py) +- [11 - 5808](11%20-%205808.py) +- [12 - Evil](12%20-%20Evil.py) +- [13 - Disproportional](13%20-%20Disproportional.py) +- [14 - Italy](14%20-%20Italy.py) diff --git a/python/pythonchallenge.com/wire.png b/languages/python/pythonchallenge.com/wire.png similarity index 100% rename from python/pythonchallenge.com/wire.png rename to languages/python/pythonchallenge.com/wire.png diff --git a/python/readme.md b/languages/python/readme.md similarity index 100% rename from python/readme.md rename to languages/python/readme.md diff --git a/python/pythonchallenge.com/readme.md b/python/pythonchallenge.com/readme.md deleted file mode 100644 index ad8ffb5..0000000 --- a/python/pythonchallenge.com/readme.md +++ /dev/null @@ -1,19 +0,0 @@ -
- -

pythonchallenge.com

-
- -- [1 - Map](1%20-%20Map.py) -- [2 - OCR](2%20-%20OCR.py) -- [3 - Equality](3%20-%20Equality.py) -- [4 - linkedlist](4%20-%20linkedlist.py) -- [5 - Peak Hell](5%20-%20Peak%20Hell.py) -- [6 - Channel](6%20-%20Channel.py) -- [7 - Oxygen](7%20-%20Oxygen.py) -- [8 - Integrity](8%20-%20Integrity.py) -- [9 - Good](9%20-%20Good.py) -- [10 - Bull](10%20-%20Bull.py) -- [11 - 5808](11%20-%205808.py) -- [12 - Evil](12%20-%20Evil.py) -- [13 - Disproportional](13%20-%20Disproportional.py) -- [14 - Italy](14%20-%20Italy.py) diff --git a/readme.md b/readme.md index 0f2fbc5..e1364d4 100644 --- a/readme.md +++ b/readme.md @@ -10,7 +10,7 @@ - [Python](languages/python) - [C](languages/c) - [Java](languages/java) -- [Project Euler](euler) +- [Project Euler](challenges/euler) +- [r/dailyprogrammer](challenges/daily-programmer) - [GCSE Computer Science](school/gcse) - [Royal Institute Computer Science Masterclass 2021](school/royal%20institute) -- [r/dailyprogrammer](daily-programmer)