{"id":15489908,"url":"https://github.com/rene-d/hackerrank","last_synced_at":"2026-03-08T22:32:22.685Z","repository":{"id":50685742,"uuid":"126988186","full_name":"rene-d/hackerrank","owner":"rene-d","description":"HackerRank personal solutions","archived":false,"fork":false,"pushed_at":"2019-05-16T03:56:27.000Z","size":8179,"stargazers_count":86,"open_issues_count":1,"forks_count":25,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T19:05:32.255Z","etag":null,"topics":["hackerrank"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rene-d.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":"security/CMakeLists.txt","support":null}},"created_at":"2018-03-27T13:10:25.000Z","updated_at":"2025-04-21T20:54:16.000Z","dependencies_parsed_at":"2022-09-08T23:51:04.125Z","dependency_job_id":null,"html_url":"https://github.com/rene-d/hackerrank","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rene-d/hackerrank","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rene-d%2Fhackerrank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rene-d%2Fhackerrank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rene-d%2Fhackerrank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rene-d%2Fhackerrank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rene-d","download_url":"https://codeload.github.com/rene-d/hackerrank/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rene-d%2Fhackerrank/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30275540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"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":["hackerrank"],"created_at":"2024-10-02T07:08:40.192Z","updated_at":"2026-03-08T22:32:22.667Z","avatar_url":"https://github.com/rene-d.png","language":"Python","readme":"# [![HackerRank](https://hrcdn.net/hackerrank/assets/brand/h_mark_sm-30dc0e0cbd2dded63b294819ff853a90.svg)](https://www.hackerrank.com) HackerRank\n\n[![Build Status](https://travis-ci.org/rene-d/hackerrank.svg?branch=master)](https://travis-ci.org/rene-d/hackerrank) [![819 solutions and counting](https://img.shields.io/badge/Challenges-819-blue.svg)](https://www.hackerrank.com/rene_d?hr_r=1)\n\n[HackerRank](https://www.hackerrank.com/dashboard) is a great place to learn, improve, play with your programming skills.\n\nAll challenges are runnable, except SQL and multiple choice question ones. They are verified with their default testcase (usually Testcase 0).\n\n\n## Solutions\n\n[![C++](https://hrcdn.net/hackerrank/assets/dashboard/cpp-4644489c8b8e68a81dd0ccfac5097c2e.svg)](cpp/)\n\u003ca href=\"c/\"\u003e\u003cimg src=\"https://hrcdn.net/hackerrank/assets/dashboard/c-43bbd380e51d62b83c4b542c58699a97.svg\" width=\"50px\" height=\"50px\"\u003e\u003c/a\u003e\n[![Python](https://hrcdn.net/hackerrank/assets/dashboard/python-473706315bc214a540c1ca7b57f60854.svg)](python/)\n[![Shell](https://hrcdn.net/hackerrank/assets/dashboard/shell-5c42f1aa41f72148347b7e91bf46ae4f.svg)](shell/)\n[![Java](https://hrcdn.net/hackerrank/assets/dashboard/java-5a95cc68f65be63c24f5913e29bafb66.svg)](java/)\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\n[![Algorithms](https://hrcdn.net/hackerrank/assets/dashboard/algorithms-ea9e958ddb5b097c5ebcdd22de4a9766.svg)](algorithms/)\n[![Data Structures](https://hrcdn.net/hackerrank/assets/dashboard/data-structures-e83daf9e8769351037cc25ff131931d1.svg)](data-structures/)\n[![Mathematics](https://hrcdn.net/hackerrank/assets/dashboard/mathematics-3ec234bd89020880ff0349f9cacdab30.svg)](mathematics/)\n\n[![30 Days of Code](https://hrcdn.net/hackerrank/assets/dashboard/30-days-of-code-bf00cb8a1c6f38bf917f45ea7ab2bf6b.svg)](tutorials/30-days-of-code/)\n[![Cracking the Coding Interview](https://hrcdn.net/hackerrank/assets/dashboard/cracking-the-coding-interview-a56b2213a9c4f9393bfeb13261449c37.svg)](tutorials/cracking-the-coding-interview/)\n[![10 Days of Statistics](https://hrcdn.net/hackerrank/assets/dashboard/10-days-of-statistics-f45c998a5d47c9527eb61e620f35f5c0.svg)](tutorials/10-days-of-statistics/)\n[![10 Days of Javascript](https://hrcdn.net/hackerrank/assets/dashboard/10-days-of-javascript-bf50d09114e28b603041e791559003b6.svg)](tutorials/10-days-of-javascript/)\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\n[![Regex](https://hrcdn.net/hackerrank/assets/dashboard/regex-d83b1db79fe03650410202032d3b8afd.svg)](regex/)\n[![Security](https://hrcdn.net/hackerrank/assets/dashboard/security-ee10c8f654e78f4659d5dc6305768a63.svg)](security/)\n[![Databases](https://hrcdn.net/hackerrank/assets/dashboard/databases-0ff7fcc96c1e9516abc9ea327c9a0ef9.svg)](databases/)\n[![SQL](https://hrcdn.net/hackerrank/assets/dashboard/sql-be1ac821f4358a522d8eba7600e69549.svg)](sql/)\n\nThe curated challenges of [Interview Preparation Kit](interview-preparation-kit/).\n\nAnd [ProjectEuler+](contests/projecteuler/) (See [here](https://github.com/rene-d/math/tree/master/projecteuler) my solutions of [Project Euler](https://projecteuler.net/))\n\n## Usage and tools\n\n### Requirements\n\n- [Python 3.6 or 3.7](https://www.python.org) and some packages : [numpy](http://www.numpy.org), [SciPy](https://www.scipy.org), [scikit-learn](http://scikit-learn.org/), [requests](http://html.python-requests.org), [flake8](http://flake8.readthedocs.io/), [PyYAML](https://pyyaml.org)\n- [CMake](https://cmake.org) to build and run tests\n- Modern [GCC](https://gcc.gnu.org) or [Clang](https://clang.llvm.org) that comes    with macOS or Linux. For Windows, you can use [WSL](https://docs.microsoft.com/en-us/windows/wsl/install-win10), [Cygwin](https://www.cygwin.com) or [Visual Studio Comunity 2017](https://www.visualstudio.com/downloads/)\n- [Haskell](https://www.haskell.org) (functional programming only)\n- [Java](http://www.oracle.com/technetwork/java/javase/index.html) (some challenges and Java practice)\n- [Node.js](https://nodejs.org/)\n\n### Compilation\n\n    mkdir build\n    cd build\n    cmake ..\n    make\n\n### Tests\n\n    cd build\n    make extract-testcases\n    ctest [-R filter]\n\nIt will download the challenge testcases and run solution programs.\n\nA solution can be tested solely with `runtest.sh -t challenge-name [-n test-number]` in its build subdirectory.\n\n### Tools\n\n- `hrinit.py` creates a new file for a given challenge based on the HackerRank template. Default choice for language is [Python 3](https://wiki.python.org/moin/Python2orPython3).\n- `runtest.sh` is the script used by [CTest](https://cmake.org/Wiki/CMake/Testing_With_CTest) to verify the solution.\n- `compare.py` aims to fairly compare the program output with the excepted one. It is necessary since some challenges use decimal numbers : we cannot simply use `diff -qw`.\n- `hrtc2.py` can be used to download «purchased» testcases or to create new ones. Copy and paste the download links of input and output data.\n\n### Other (hacking) tools\n\n- `hr_github.sh` creates the testcases archive and sync the private repo to the public GitHub one\n- `hr_table.py` automatically creates `README.md` files with challenge lists (requires offline data)\n- `hr_count.py` counts challenges and testcases - used to update toplevel `README.md`\n- `hr_offline.py` downloads challenge catalogs and more\n- `hr_interview.py` gets the playlist of [Interview Preparation Kit](https://www.hackerrank.com/interview/interview-preparation-kit)\n- `hr_menu.py` displays a graphical menu to browse challenges and solve them when no Internet connection is available (requires offline data)\n- `hr_db.py` creates a SQLite database - used to understand how data is structured (or not!)\n\n### IDE\n\n[Visual Studio Code](https://code.visualstudio.com) is a great free IDE that comes with many [plugins](https://marketplace.visualstudio.com/vscode). Some configuration files are provided and a [Bash](https://www.gnu.org/software/bash/) initialization file.\n\n### Other online resources\n\n* [stack overflow](https://stackoverflow.com) and [Mathematics Stack Exchange](https://math.stackexchange.com)\n* [GeeksforGeeks](https://www.geeksforgeeks.org) Computer Science portal and resources\n* [Rosetta Code](http://rosettacode.org/wiki/Rosetta_Code)\n* [tutorialspoint](https://www.tutorialspoint.com/)\n* [Compiler Explorer](https://godbolt.org) Run compilers interactively from your web browser and interact with the assembly ([opensource](https://github.com/mattgodbolt/compiler-explorer)).\n* [Ideone](https://ideone.com) Online compiler and debugging tool which allows youto compile source code and execute it online in more than 60 programming languages.\n* and many, many more...\n\n## License\n\n[Unlicense](http://unlicense.org) aka. Public Domain \u0026#x1F918;\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frene-d%2Fhackerrank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frene-d%2Fhackerrank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frene-d%2Fhackerrank/lists"}