{"id":18762688,"url":"https://github.com/vinodnextcoder/train-problem-geektrust","last_synced_at":"2026-03-06T10:05:59.484Z","repository":{"id":48171005,"uuid":"503699071","full_name":"vinodnextcoder/train-problem-geektrust","owner":"vinodnextcoder","description":"Train-problem-geektrust Given the initial bogie order of both trains","archived":false,"fork":false,"pushed_at":"2022-07-10T14:31:23.000Z","size":18,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T04:42:51.787Z","etag":null,"topics":["geektrust-backend","geektrust-challenges","geektrust-javascript","geektrust-nodejs","geektrust-solutions","train-geektrust","train-problem-geektrust"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/vinodnextcoder.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}},"created_at":"2022-06-15T09:28:08.000Z","updated_at":"2023-12-30T07:28:34.000Z","dependencies_parsed_at":"2022-09-26T18:31:29.787Z","dependency_job_id":null,"html_url":"https://github.com/vinodnextcoder/train-problem-geektrust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vinodnextcoder/train-problem-geektrust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinodnextcoder%2Ftrain-problem-geektrust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinodnextcoder%2Ftrain-problem-geektrust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinodnextcoder%2Ftrain-problem-geektrust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinodnextcoder%2Ftrain-problem-geektrust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinodnextcoder","download_url":"https://codeload.github.com/vinodnextcoder/train-problem-geektrust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinodnextcoder%2Ftrain-problem-geektrust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30171657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["geektrust-backend","geektrust-challenges","geektrust-javascript","geektrust-nodejs","geektrust-solutions","train-geektrust","train-problem-geektrust"],"created_at":"2024-11-07T18:22:46.046Z","updated_at":"2026-03-06T10:05:59.452Z","avatar_url":"https://github.com/vinodnextcoder.png","language":"JavaScript","readme":"# Pre-requisites\n* NodeJS 12.6.0/14.15.4/16.10.0\n* npm\n\n# How to run the code\n\nWe have provided scripts to execute the code. \n\nUse `run.sh` if you are Linux/Unix/macOS Operating systems and `run.bat` if you are on Windows.  Both the files run the commands silently and prints only output from the input file `sample_input/input1.txt`. You are supposed to add the input commands in the file from the appropriate problem statement. \n\nInternally both the scripts run the following commands \n\n * `npm ci --silent` - This will build the solution downloading the necessary dependencies.\n * Once the `npm install` from the previous build process is complete, we will execute the program using the command\n\n`npm start --silent sample_input/input1.txt`\n\nWe expect your program to take the location to the text file as parameter. Input needs to be read from a text file, and output should be printed to the console. The text file will contain only commands in the format prescribed by the respective problem.\n\nThis main file, main.go should receive in the command line argument and parse the file passed in. Once the file is parsed and the application processes the commands, it should only print the output.\n\n # Running the code for multiple test cases\n\n Please fill `input1.txt` and `input2.txt` with the input commands and use those files in `run.bat` or `run.sh`. Replace `./geektrust sample_input/input1.txt` with `./geektrust sample_input/input2.txt` to run the test case from the second file. \n\n # How to execute the unit tests\n\n Mocha based test cases are executed with the following command from the root folder\n`mocha test`\n\nJest based test cases are executed with the following command from the root folder\n`jest`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinodnextcoder%2Ftrain-problem-geektrust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinodnextcoder%2Ftrain-problem-geektrust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinodnextcoder%2Ftrain-problem-geektrust/lists"}