{"id":21241235,"url":"https://github.com/icyjoseph/codejam-js","last_synced_at":"2025-07-10T20:30:54.730Z","repository":{"id":38334850,"uuid":"175939300","full_name":"icyJoseph/codejam-js","owner":"icyJoseph","description":"Solutions to Code Jam and Kick Start problems.","archived":false,"fork":false,"pushed_at":"2022-11-08T13:22:36.000Z","size":365,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T17:05:33.396Z","etag":null,"topics":["algorithm-challenges","babel","codeforces","codejam","competitive-programming","es6","javascript","kickstart","rust","swift"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/icyJoseph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-16T07:16:19.000Z","updated_at":"2024-10-21T15:29:40.000Z","dependencies_parsed_at":"2023-01-21T00:47:08.564Z","dependency_job_id":null,"html_url":"https://github.com/icyJoseph/codejam-js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/icyJoseph/codejam-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyJoseph%2Fcodejam-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyJoseph%2Fcodejam-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyJoseph%2Fcodejam-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyJoseph%2Fcodejam-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icyJoseph","download_url":"https://codeload.github.com/icyJoseph/codejam-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyJoseph%2Fcodejam-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264652630,"owners_count":23644292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithm-challenges","babel","codeforces","codejam","competitive-programming","es6","javascript","kickstart","rust","swift"],"created_at":"2024-11-21T00:55:03.026Z","updated_at":"2025-07-10T20:30:53.469Z","avatar_url":"https://github.com/icyJoseph.png","language":"Rust","readme":"# Competitive Programming\n\nThis repository features solutions to Google's competitions and Codeforces using Rust.\n\n## Content\n\nSolutions to Kick Start Problems, Codeforces and CodeJam are all mixed up in the `src/` folder.\n\n## Quick start\n\nIn this competitions speed is everything, that's why there's a file, `template/src/main.src`, which can be used to start solving a problem.\n\nIt contains number parsing, and vector parsing for `i32`, `usize`, `u32`, etc. All generics that implement `FromStr`.\n\nIt is also possible to simply read the next line, as a `String`, using `nxt`.\n\n### Toolbox\n\n#### `nxt`\n\nReads a line from `stdin` and returns it as a `String`.\n\n```rust\nfn main() -\u003e Res\u003c()\u003e {\n    let string = nxt();\n    println!(\"{}\", string);\n}\n```\n\n#### `parse_num`\n\nBuilds upon `nxt`, to parse a line as a number into type `T: std::str::FromStr`.\n\n```rust\nfn main() -\u003e Res\u003c()\u003e {\n    let num = parse_num::\u003cu32\u003e();\n    println!(\"{}\", num);\n}\n```\n\n#### `parse_vec`\n\nBuilds upon `nxt`, to parse a line as a vector of type `T: std::str::FromStr`.\n\n```rust\nfn main() -\u003e Res\u003c()\u003e {\n    let vector = parse_vec::\u003cu32\u003e();\n    println!(\"{:?}\", vector);\n}\n```\n\n## Creating a new problem\n\nEnter to the `src` folder and run:\n\n```\ncargo generate --path ./template --name \u003cproblem_name\u003e --force\n```\n\n## Solving a problem\n\nPlace your solution inside the `main` function. Create as many helpers as necessary.\n\n## Run a problem\n\nFrom the problem directory:\n\n```\ncargo build --release --target-dir .\n./release/\u003cproblem_name\u003e \u003c \u003cproblem_name\u003e.in\n```\n\n## Legacy\n\n### CodeJam 2019\n\nSolved enough to pass to next round. My two solutions worked flawlessly on the first attempt, and also passed the hidden test cases.\n\nAfter the qualification, as practice, I solved problem 3, `Cryptopangrams`, inside the `cypher.js` file. Problem 4 is also solved in `datbae.js`, very tough problem!\n\n### Transpiling\n\n\u003e CodeJam 2019 has enabled nodejs v11.13.0!\n\nTo use JavaScript transpiling checkout the v1 tag.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficyjoseph%2Fcodejam-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficyjoseph%2Fcodejam-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficyjoseph%2Fcodejam-js/lists"}