rigwild / code-challenges

Some submissions to code challenges/contests - CodinGame, Leetcode
Do What The F*ck You Want To Public License
8 stars 6 forks source link
coding-challenge codingame codingame-puzzles codingame-solutions javascript leetcode leetcode-contest leetcode-javascript leetcode-javascript-solutions leetcode-js leetcode-solutions typescript

code-challenges

This is a collection of some of my submissions to code challenges/contests.

TOC

Add a challenge

pnpm i
zx _initChallenge.mjs

Generate README

zx _genReadme.mjs

Challenges

Grouped by type

Classic

Name Platform
100289-minimum-substring-partition-of-equal-character-frequency leetcode
100299-check-if-grid-satisfies-conditions leetcode
100302-maximum-points-inside-the-square leetcode
100330-minimum-length-of-string-after-operations leetcode
100375-find-the-winning-player-in-coin-game leetcode
1d-spreadsheet codingame
2481-minimum-cuts-to-divide-a-circle leetcode
2482-difference-between-ones-and-zeros-in-row-and-column leetcode
2483-minimum-penalty-for-a-shop leetcode
2511-maximum-enemy-forts-that-can-be-captured leetcode
2512-reward-top-k-students leetcode
2553-separate-the-digits-in-an-array leetcode
2554-maximum-number-of-integers-to-choose-from-a-range-i leetcode
6261-maximum-value-of-a-string-in-an-array leetcode
6262-maximum-star-sum-of-a-graph leetcode
6287-categorize-box-according-to-criteria leetcode
6288-find-consecutive-integers-from-a-data-stream leetcode
6300-minimum-common-value leetcode
6311-count-total-number-of-colored-cells leetcode
6312-split-with-minimum-sum leetcode
6333-find-the-width-of-columns-of-a-grid leetcode
6334-find-the-score-of-all-prefixes-of-an-array leetcode
6335-cousins-in-binary-tree-ii leetcode
6403-maximum-number-of-fish-in-a-grid leetcode
6404-make-array-empty leetcode
6405-find-the-prefix-common-array-of-two-arrays leetcode
6406-maximum-sum-with-exactly-k-elements leetcode
6425-find-the-longest-semi-repetitive-substring leetcode
6426-movement-of-robots leetcode
6461-check-if-the-number-is-fascinating leetcode
6989-maximum-sum-of-almost-unique-subarray leetcode
7005-check-if-strings-can-be-made-equal-with-operations-ii leetcode
7021-check-if-strings-can-be-made-equal-with-operations-i leetcode
aneo codingame
ascii-art codingame
brackets-extreme-edition codingame
defibrillators codingame
dont-panic-episode-1 codingame
ghost-legs codingame
horse-racing-duals codingame
mars-lander-episode-1 codingame
mime-type codingame
order-of-succession codingame
power-of-thor-episode-1 codingame
power-of-thor-episode-2 codingame
rectangle-partition codingame
rock-paper-scissors-lizard-spock codingame
rock-paper-scissors-war codingame
shadows-of-the-knight-episode-1 codingame
skynet-revolution-episode-1 codingame
skynet-revolution-episode-2 codingame
telephone-numbers codingame
temperatures codingame
text-formatting codingame
the-labyrinth codingame
there-is-no-spoon-episode-1 codingame

Code golf

Name Platform
chuck-norris-codesize codingame
power-of-thor-codesize codingame

Contest

Name Platform
fall-challenge-2020 codingame
spring-challenge-2020 codingame
winter-challenge-2023 codingame

Grouped by platform

codingame

Name Type
1d-spreadsheet Classic
aneo Classic
ascii-art Classic
brackets-extreme-edition Classic
chuck-norris-codesize Code golf
defibrillators Classic
dont-panic-episode-1 Classic
fall-challenge-2020 Contest
ghost-legs Classic
horse-racing-duals Classic
mars-lander-episode-1 Classic
mime-type Classic
order-of-succession Classic
power-of-thor-codesize Code golf
power-of-thor-episode-1 Classic
power-of-thor-episode-2 Classic
rectangle-partition Classic
rock-paper-scissors-lizard-spock Classic
rock-paper-scissors-war Classic
shadows-of-the-knight-episode-1 Classic
skynet-revolution-episode-1 Classic
skynet-revolution-episode-2 Classic
spring-challenge-2020 Contest
telephone-numbers Classic
temperatures Classic
text-formatting Classic
the-labyrinth Classic
there-is-no-spoon-episode-1 Classic
winter-challenge-2023 Contest

leetcode

Name Type
100289-minimum-substring-partition-of-equal-character-frequency Classic
100299-check-if-grid-satisfies-conditions Classic
100302-maximum-points-inside-the-square Classic
100330-minimum-length-of-string-after-operations Classic
100375-find-the-winning-player-in-coin-game Classic
2481-minimum-cuts-to-divide-a-circle Classic
2482-difference-between-ones-and-zeros-in-row-and-column Classic
2483-minimum-penalty-for-a-shop Classic
2511-maximum-enemy-forts-that-can-be-captured Classic
2512-reward-top-k-students Classic
2553-separate-the-digits-in-an-array Classic
2554-maximum-number-of-integers-to-choose-from-a-range-i Classic
6261-maximum-value-of-a-string-in-an-array Classic
6262-maximum-star-sum-of-a-graph Classic
6287-categorize-box-according-to-criteria Classic
6288-find-consecutive-integers-from-a-data-stream Classic
6300-minimum-common-value Classic
6311-count-total-number-of-colored-cells Classic
6312-split-with-minimum-sum Classic
6333-find-the-width-of-columns-of-a-grid Classic
6334-find-the-score-of-all-prefixes-of-an-array Classic
6335-cousins-in-binary-tree-ii Classic
6403-maximum-number-of-fish-in-a-grid Classic
6404-make-array-empty Classic
6405-find-the-prefix-common-array-of-two-arrays Classic
6406-maximum-sum-with-exactly-k-elements Classic
6425-find-the-longest-semi-repetitive-substring Classic
6426-movement-of-robots Classic
6461-check-if-the-number-is-fascinating Classic
6989-maximum-sum-of-almost-unique-subarray Classic
7005-check-if-strings-can-be-made-equal-with-operations-ii Classic
7021-check-if-strings-can-be-made-equal-with-operations-i Classic

All challenges

Name Platform Type
100289-minimum-substring-partition-of-equal-character-frequency leetcode Classic
100299-check-if-grid-satisfies-conditions leetcode Classic
100302-maximum-points-inside-the-square leetcode Classic
100330-minimum-length-of-string-after-operations leetcode Classic
100375-find-the-winning-player-in-coin-game leetcode Classic
1d-spreadsheet codingame Classic
2481-minimum-cuts-to-divide-a-circle leetcode Classic
2482-difference-between-ones-and-zeros-in-row-and-column leetcode Classic
2483-minimum-penalty-for-a-shop leetcode Classic
2511-maximum-enemy-forts-that-can-be-captured leetcode Classic
2512-reward-top-k-students leetcode Classic
2553-separate-the-digits-in-an-array leetcode Classic
2554-maximum-number-of-integers-to-choose-from-a-range-i leetcode Classic
6261-maximum-value-of-a-string-in-an-array leetcode Classic
6262-maximum-star-sum-of-a-graph leetcode Classic
6287-categorize-box-according-to-criteria leetcode Classic
6288-find-consecutive-integers-from-a-data-stream leetcode Classic
6300-minimum-common-value leetcode Classic
6311-count-total-number-of-colored-cells leetcode Classic
6312-split-with-minimum-sum leetcode Classic
6333-find-the-width-of-columns-of-a-grid leetcode Classic
6334-find-the-score-of-all-prefixes-of-an-array leetcode Classic
6335-cousins-in-binary-tree-ii leetcode Classic
6403-maximum-number-of-fish-in-a-grid leetcode Classic
6404-make-array-empty leetcode Classic
6405-find-the-prefix-common-array-of-two-arrays leetcode Classic
6406-maximum-sum-with-exactly-k-elements leetcode Classic
6425-find-the-longest-semi-repetitive-substring leetcode Classic
6426-movement-of-robots leetcode Classic
6461-check-if-the-number-is-fascinating leetcode Classic
6989-maximum-sum-of-almost-unique-subarray leetcode Classic
7005-check-if-strings-can-be-made-equal-with-operations-ii leetcode Classic
7021-check-if-strings-can-be-made-equal-with-operations-i leetcode Classic
aneo codingame Classic
ascii-art codingame Classic
brackets-extreme-edition codingame Classic
chuck-norris-codesize codingame Code golf
defibrillators codingame Classic
dont-panic-episode-1 codingame Classic
fall-challenge-2020 codingame Contest
ghost-legs codingame Classic
horse-racing-duals codingame Classic
mars-lander-episode-1 codingame Classic
mime-type codingame Classic
order-of-succession codingame Classic
power-of-thor-codesize codingame Code golf
power-of-thor-episode-1 codingame Classic
power-of-thor-episode-2 codingame Classic
rectangle-partition codingame Classic
rock-paper-scissors-lizard-spock codingame Classic
rock-paper-scissors-war codingame Classic
shadows-of-the-knight-episode-1 codingame Classic
skynet-revolution-episode-1 codingame Classic
skynet-revolution-episode-2 codingame Classic
spring-challenge-2020 codingame Contest
telephone-numbers codingame Classic
temperatures codingame Classic
text-formatting codingame Classic
the-labyrinth codingame Classic
there-is-no-spoon-episode-1 codingame Classic
winter-challenge-2023 codingame Contest

License

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Copyright (C) rigwild

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.