{"id":30193254,"url":"https://github.com/asarkar/cses-java","last_synced_at":"2025-08-13T01:54:35.468Z","repository":{"id":293418536,"uuid":"983965679","full_name":"asarkar/cses-java","owner":"asarkar","description":"CSES Problem Set","archived":false,"fork":false,"pushed_at":"2025-05-15T10:02:11.000Z","size":14524,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-08T22:58:30.279Z","etag":null,"topics":["competitive-programming","cses","java"],"latest_commit_sha":null,"homepage":"","language":"Java","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/asarkar.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"asarkar"}},"created_at":"2025-05-15T07:30:16.000Z","updated_at":"2025-05-15T10:02:15.000Z","dependencies_parsed_at":"2025-05-15T08:52:16.531Z","dependency_job_id":null,"html_url":"https://github.com/asarkar/cses-java","commit_stats":null,"previous_names":["asarkar/cses-java"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/asarkar/cses-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asarkar%2Fcses-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asarkar%2Fcses-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asarkar%2Fcses-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asarkar%2Fcses-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asarkar","download_url":"https://codeload.github.com/asarkar/cses-java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asarkar%2Fcses-java/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270166098,"owners_count":24538444,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["competitive-programming","cses","java"],"created_at":"2025-08-13T01:54:31.825Z","updated_at":"2025-08-13T01:54:35.429Z","avatar_url":"https://github.com/asarkar.png","language":"Java","funding_links":["https://github.com/sponsors/asarkar"],"categories":[],"sub_categories":[],"readme":"The [CSES Problem Set](https://cses.fi/problemset/) contains a collection of algorithm programming practice problems.\nSee the list of [contributors](https://cses.fi/about) here. The problem set is licensed under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/).\n\n[![](https://github.com/asarkar/cses-java/workflows/CI/badge.svg)](https://github.com/asarkar/cses-java/actions)\n\n## Table of Contents\n\n### Sorting and Searching\n* [Distinct Numbers](https://cses.fi/problemset/task/1621) - [Solution](sorting+searching/src/main/java/P1621.java)\n* [Apartments](https://cses.fi/problemset/task/1084) - [Solution](sorting+searching/src/main/java/P1084.java)\n\n## Where are the solutions to the other problems?\nI moved on after attempting a few problems, as it became clear that solving the problem set wasn't\nthe best use of my time.\n\n1. **Inconsistent Execution Times**:\n   Despite identical algorithm, memory and execution constraints, runtime behavior is inconsistent.\n   Code that executes in milliseconds locally can take over a second on the site, leading to \n   frustrating timeouts.\n\n2. **Promotion of Suboptimal Coding Practices**\n\n   * **Single-Function Solutions** – The site effectively discourages clean, modular design by \n     rewarding monolithic, single-function code over well-structured, reusable components. \n     For example, compare [my solution](sorting+searching/src/main/java/P1084.java) \n     with this [random online solution](https://github.com/Dev-eloperr/CSES/blob/master/CSES%20Apartments/src/Main.java).\n     Which would you rather see in a real-world codebase? Fun fact: Mine times out, while the other passes.\n\n   * **Manual Input Handling** – Tedious, low-level input parsing feels outdated and \n     cumbersome, as if we're coding for punch cards in 1969.\n\n   * **Java Package Restrictions** – Every Java program must reside in the default package.\n\n3. **Language Bias**:\n   The fastest solutions are typically in Assembly, C++, or Rust, putting those using other \n   languages at a disadvantage. It would be more meaningful to compare performance within \n   each language group, rather than across all of them.\n\n4. **Outdated Language Runtimes**:\n   The site uses [outdated language runtimes](https://cses.fi/howto/) incompatible with modern tooling, \n   making it difficult to practice locally without significant friction.\n\nUltimately, I realized that my time was better spent on elsewhere.\n\n## License\n\n[Creative Commons BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasarkar%2Fcses-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasarkar%2Fcses-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasarkar%2Fcses-java/lists"}