{"id":18574952,"url":"https://github.com/cunningdj/grokjava","last_synced_at":"2026-04-27T20:31:18.352Z","repository":{"id":95724792,"uuid":"487989040","full_name":"CunningDJ/grokJava","owner":"CunningDJ","description":"My code suite, including homemade build and run tools and testing library, for practicing the Grokking the Coding Interview algo patterns in Java.","archived":false,"fork":false,"pushed_at":"2022-05-14T18:00:41.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T00:12:57.438Z","etag":null,"topics":["algorithms","algorithms-java","bash","educative","grokking","grokking-algorithms","grokking-coding-interview","heaps","java","tortoise-and-hare-algorithm","two-pointers"],"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/CunningDJ.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}},"created_at":"2022-05-02T20:58:20.000Z","updated_at":"2022-05-02T22:47:43.000Z","dependencies_parsed_at":"2023-05-04T04:39:08.553Z","dependency_job_id":null,"html_url":"https://github.com/CunningDJ/grokJava","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CunningDJ/grokJava","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CunningDJ%2FgrokJava","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CunningDJ%2FgrokJava/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CunningDJ%2FgrokJava/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CunningDJ%2FgrokJava/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CunningDJ","download_url":"https://codeload.github.com/CunningDJ/grokJava/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CunningDJ%2FgrokJava/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32354564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["algorithms","algorithms-java","bash","educative","grokking","grokking-algorithms","grokking-coding-interview","heaps","java","tortoise-and-hare-algorithm","two-pointers"],"created_at":"2024-11-06T23:17:00.297Z","updated_at":"2026-04-27T20:31:18.333Z","avatar_url":"https://github.com/CunningDJ.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grokking The Coding Interview: Java Practice Suite\nThis is my code suite, including homemade build and run tools and testing library, for practicing the [Grokking the Coding Interview](https://www.educative.io/courses/grokking-the-coding-interview) algo patterns in Java.\n\n# Instructions\n## Creating/Adding Java Classes \u0026 Tests\n### Adding to an Existing Java Class \u0026 Tests\nAdd methods to an existing .java file and tests in the class's `main()` method (using the Tester class for test utilities - see example main() methods in existing files)\n\n### Creating a new Java Class \u0026 Tests - `gtool new`\nTo create a new .java file/class, run `gtool new [classname]`, e.g. `gtool new GrokkingTopSort`, which will create the corresponding .java file (e.g. GrokkingTopSort.java) with initial boilerplate code at the top level.\n\n\n## `gtool` - Home Made Clean, Build \u0026 Run Tool\n* The command line tool `gtool` can handle all `clean`, `build`, and `run` operations, using these as the respective command argument (e.g. `gtool clean`).\n* Run the tool without an argument to see the available commands.  Run with commands to perform the desired operations.\n\n### BE AWARE\n* `gtool build` will automatically `clean` before building.\n* `gtool run` will neither build nor clean automatically.  To get all of these in one, use the `gtool br` command (see below)\n\n### `gtool br` - Easy `clean`, `build` \u0026 `run` All-In-One\nThe `br` command argument will clean, build, and run the given class all in one (you don't need to include the package name for the class).\n\n**Example**:  `gtool br GrokkingFastSlowPointers` will clean and build all .java files and then run the main method for the `GrokkingFastSlowPointers` class.\n\n### `gtool new` - Easy Java Class Creator\nFeed a class name to this method (e.g. `gtool new GrokkingTopSort`) to conveniently create a respective .java class file (e.g. `GrokkingTopSort.java`) with the appropriate package name (set with [`DEFAULT_PACKAGE_NAME`](https://github.com/CunningDJ/grokJava/blob/master/gtool#L8)) and boilerplate class code already added.\n\n### Verbose\nIf for some reason you want a verbose printout of the stages being performed by `gtool`, simply change the [initialized `VERBOSE` value](https://github.com/CunningDJ/grokJava/blob/master/gtool#L10) to `1`.  Maybe I'll add a `-v` flag but I don't feel like it right now.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcunningdj%2Fgrokjava","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcunningdj%2Fgrokjava","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcunningdj%2Fgrokjava/lists"}