{"id":19071092,"url":"https://github.com/mokiat/hacktherank","last_synced_at":"2025-02-22T03:44:51.754Z","repository":{"id":82147407,"uuid":"282713636","full_name":"mokiat/hacktherank","owner":"mokiat","description":"Tool for quickly testing your hackerrank solutions","archived":false,"fork":false,"pushed_at":"2023-03-21T21:48:11.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-02T16:14:44.138Z","etag":null,"topics":["go","golang","hackerrank","testing","tool"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mokiat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-07-26T18:54:57.000Z","updated_at":"2023-03-21T21:43:33.000Z","dependencies_parsed_at":"2024-11-09T01:24:59.186Z","dependency_job_id":"39a08bfd-4609-4e87-9cfd-bd0c4f595d4d","html_url":"https://github.com/mokiat/hacktherank","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mokiat%2Fhacktherank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mokiat%2Fhacktherank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mokiat%2Fhacktherank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mokiat%2Fhacktherank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mokiat","download_url":"https://codeload.github.com/mokiat/hacktherank/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240122574,"owners_count":19751142,"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":["go","golang","hackerrank","testing","tool"],"created_at":"2024-11-09T01:22:21.395Z","updated_at":"2025-02-22T03:44:51.730Z","avatar_url":"https://github.com/mokiat.png","language":"Go","readme":"# Hack The Rank\n\n![Build Status](https://github.com/mokiat/hacktherank/workflows/Go/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/mokiat/hacktherank)](https://goreportcard.com/report/github.com/mokiat/hacktherank)\n\nA tool that should make it easier to write and test Go solutions for HackerRank challenges.\nThe `hacktherank` tool allows you to run a set of test data samples against your source code.\n\n## Usage\n\n1. Install the tool\n\n\t```sh\n\tgo install github.com/mokiat/hacktherank@latest\n\t```\n\n1. Create a test data file\n\n\tThis is a file which contains the input lines to test with and the expected output lines. It is possible to specify multiple test scenarios (or samples) within a single file. Following is an example for a sum challenge.\n\n\t```\n\tinput:\n\t3 5\n\toutput:\n\t8\n\tinput:\n\t10 20\n\toutput:\n\t30\n\n\t```\n\n\t**Note:** Make sure that all relevant new-line symbols are added and that no unexpected blank space characters are inserted. The tool matches lines exactly - without trimming.\n\n1. Write your solution\n\n\tYou should create a `main.go` file somwhere and add your Go implementation to it.\n\n1. Test your solution with the `hacktherank` tool\n\n\tFollowing is a demonstration using the example folder of this project.\n\n\t```sh\n\thacktherank -main example/main.go -data example/data.txt\n\t```\n\n1. Iterate over your solution\n\n\tOnce you start tackling more complicated challenges, it is unlikely that you will be able to solve them on the first try.\n\n\tMake adjustments to your `main.go` file and just rerun the command to see if you have solved it.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmokiat%2Fhacktherank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmokiat%2Fhacktherank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmokiat%2Fhacktherank/lists"}