{"id":15690588,"url":"https://github.com/micheleriva/hackerrank-my-solutions","last_synced_at":"2025-05-07T23:43:58.149Z","repository":{"id":111228148,"uuid":"149190313","full_name":"micheleriva/HackerRank-my-solutions","owner":"micheleriva","description":"🍿My solutions to HackerRank problems","archived":false,"fork":false,"pushed_at":"2019-05-24T09:36:33.000Z","size":38,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T23:43:51.740Z","etag":null,"topics":["ai","artificial-intelligence","bot","cpp","cpp11","elixir","elixir-lang","euler","hackerrank","hackerrank-solutions","haskell","js","mysql","regex","regexp","ruby","scala","sql"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/micheleriva.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["MicheleRiva"],"patreon":"micheleriva","custom":"https://paypal.me/micheleriva"}},"created_at":"2018-09-17T21:28:36.000Z","updated_at":"2023-10-06T04:54:41.000Z","dependencies_parsed_at":"2023-05-31T14:30:22.670Z","dependency_job_id":null,"html_url":"https://github.com/micheleriva/HackerRank-my-solutions","commit_stats":{"total_commits":56,"total_committers":1,"mean_commits":56.0,"dds":0.0,"last_synced_commit":"b377817f2298bc62728989df7813c95d5f33b3d1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micheleriva%2FHackerRank-my-solutions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micheleriva%2FHackerRank-my-solutions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micheleriva%2FHackerRank-my-solutions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micheleriva%2FHackerRank-my-solutions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micheleriva","download_url":"https://codeload.github.com/micheleriva/HackerRank-my-solutions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973617,"owners_count":21834105,"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":["ai","artificial-intelligence","bot","cpp","cpp11","elixir","elixir-lang","euler","hackerrank","hackerrank-solutions","haskell","js","mysql","regex","regexp","ruby","scala","sql"],"created_at":"2024-10-03T18:12:24.266Z","updated_at":"2025-05-07T23:43:58.132Z","avatar_url":"https://github.com/micheleriva.png","language":"Haskell","funding_links":["https://github.com/sponsors/MicheleRiva","https://patreon.com/micheleriva","https://paypal.me/micheleriva"],"categories":[],"sub_categories":[],"readme":"# 🍿 My HackerRank Solutions\n\nThese days I'm really digging into [HackerRank](https://www.hackerrank.com) and I'm really improving my skills!\n\nI've decided to make my solutions public just to keep track of them and hoping that someone will show me my mistakes or improves my code 😀\n\n### Index\n\n- [Artificial Intelligence](#artificial-intelligence)\n- [Algorithms](#algorithms)\n- [Interview Preparation Kit](#interview-preparation-kit)\n- [SQL](#sql)\n- [Regex](#regex)\n- [Euler](#euler)\n- [Functional Programming](#functional-programming)\n- [Linux Shell](#linux-shell)\n- [Java](#java)\n\n### Artificial Intelligence\n\n- [Bot Saves Princess](https://www.hackerrank.com/challenges/saveprincess)\n  - [Solution](/src/js/artificial-intelligence/lib/bot-saves-princess.js)\n  - [Explanation](/src/js/artificial-intelligence/README.md#bot-saves-princess)\n\n### Algorithms\n- [Mini-Max Sum](https://www.hackerrank.com/challenges/mini-max-sum/problem)\n  - [Haskell](/src/algorithms/mini-max-sum.hs)\n- [Staircase](https://www.hackerrank.com/challenges/staircase/problem)\n  - [Haskell](/src/algorithms/staircase.hs)\n\n### Interview Preparation Kit\n- [Sock Merchant](https://www.hackerrank.com/challenges/sock-merchant/problem)\n  - [Haskell](/src/interview-preparation/sock-merchant.hs)\n\n### SQL\n\n- [Contest Leaderboard](https://www.hackerrank.com/challenges/contest-leaderboard/problem)\n  - [Solution](/src/SQL/contest-leaderboard.sql)\n- [The Report](https://www.hackerrank.com/challenges/the-report/problem)\n  - [Solution](/src/SQL/the-report.sql)\n- [Top Competitors](https://www.hackerrank.com/challenges/full-score/problem)\n  - [Solution](/src/SQL/top-competitors.sql)\n- [Ollivander's Inventory](https://www.hackerrank.com/challenges/harry-potter-and-wands/problem)\n  - [Solution](/src/SQL/ollivander-s-inventory.sql)\n- [Challenges](https://www.hackerrank.com/challenges/challenges/problem)\n  - [Solution](/src/SQL/challenges.sql)\n\n### Regex\n\n##### Plain Regex\n\n- [Matching Specific String](https://www.hackerrank.com/challenges/matching-specific-string/problem)\n  - [Solution](/src/regex/patterns.rb#L2)\n- [Matching Anything But a Newline](https://www.hackerrank.com/challenges/matching-anything-but-new-line/problem)\n  - [Solution](/src/regex/patterns.rb#L5)\n- [Matching Digits \u0026 Non-Digit Characters](https://www.hackerrank.com/challenges/matching-digits-non-digit-character/problem)\n  - [Solution](/src/regex/patterns.rb#L8)\n- [Matching Whitespace \u0026 Non-Whitespace Character](https://www.hackerrank.com/challenges/matching-whitespace-non-whitespace-character/problem)\n  - [Solution](/src/regex/patterns.rb#L11)\n- [Matching Word \u0026 Non-Word Character](https://www.hackerrank.com/challenges/matching-word-non-word/problem)\n  - [Solution](/src/regex/patterns.rb#L14)\n- [Matching Start \u0026 End](https://www.hackerrank.com/challenges/matching-start-end/problem)\n  - [Solution](/src/regex/patterns.rb#L17)\n- [Matching Specific Characters](https://www.hackerrank.com/challenges/matching-specific-characters/problem)\n  - [Solution](/src/regex/patterns.rb#L20)\n- [Excluding Specific Characters](https://www.hackerrank.com/challenges/excluding-specific-characters/problem)\n  - [Solution](/src/regex/patterns.rb#L23)\n- [Matching Character Ranges](https://www.hackerrank.com/challenges/matching-range-of-characters/problem)\n  - [Solution](/src/regex/patterns.rb#L26)\n- [Matching {x} Repetitions](https://www.hackerrank.com/challenges/matching-x-repetitions/problem)\n  - [Solution](/src/regex/patterns.rb#L29)\n- [Matching {x, y} Repetitions](https://www.hackerrank.com/challenges/matching-x-y-repetitions/problem)\n  - [Solution](/src/regex/patterns.rb#L32)\n- [Matching Zero Or More Repetitions](https://www.hackerrank.com/challenges/matching-zero-or-more-repetitions/problem)\n  - [Solution](/src/regex/patterns.rb#L35)\n- [Matching Ending Items](https://www.hackerrank.com/challenges/matching-ending-items/problem)\n  - [Solution](/src/regex/patterns.rb#L38)\n\n##### Problems\n\n- [Detecting Valid Latitude and Longitude Pairs](https://www.hackerrank.com/challenges/detecting-valid-latitude-and-longitude/problem)\n  - [Elixir](/src/regex/elixir/detecting-valid-latitude-and-longitude.ex)\n- [Find HackerRank](https://www.hackerrank.com/challenges/find-hackerrank/problem)\n  - [Elixir](/src/regex/elixir/find-hackerrank.ex)\n\n### Euler\n\n- [#1: Multiples of 3 and 5](https://www.hackerrank.com/contests/projecteuler/challenges/euler001)\n  - [Elixir](/src/euler/01.ex)\n  - [Haskell](/src/euler/01.hs)\n  - [C++](/src/euler/01.cpp)\n\n### Functional Programming\n\n- [Hello World](https://www.hackerrank.com/challenges/fp-hello-world/problem)\n  - [Haskell](/src/functional-programming/haskell/hello-world.hs)\n  - [Scala](/src/functional-programming/scala/hello-world.scala)\n  - [Elixir](/src/functional-programming/elixir/hello-world.ex)\n- [Hello World N Times](https://www.hackerrank.com/challenges/fp-hello-world-n-times/problem)\n  - [Haskell](/src/functional-programming/haskell/hello-world-n-times.hs)\n  - [Scala](/src/functional-programming/scala/hello-world-n-times.scala)\n  - [Elixir](/src/functional-programming/elixir/hello-world-n-times.ex)\n- [List Replication](https://www.hackerrank.com/challenges/fp-list-replication/problem)\n  - [Haskell](/src/functional-programming/haskell/list-replication.hs)\n  - [Scala](/src/functional-programming/scala/list-replication.scala)\n  - [Elixir](/src/functional-programming/elixir/list-replication.ex)\n- [Reverse a List](https://www.hackerrank.com/challenges/fp-reverse-a-list/problem)\n  - [Scala](/src/functional-programming/scala/reverse-a-list.scala)\n- [Sum of Odd Elements](https://www.hackerrank.com/challenges/fp-sum-of-odd-elements/problem)\n  - [Scala](/src/functional-programming/scala/sum-of-odd-elements.scala)\n- [List Length](https://www.hackerrank.com/challenges/fp-list-length/problem)\n  - [Scala](/src/functional-programming/scala/list-length.scala)\n- [Update List](https://www.hackerrank.com/challenges/fp-update-list/problem)\n  - [Scala](/src/functional-programming/scala/update-list.scala)\n- [Filter Array](https://www.hackerrank.com/challenges/fp-filter-array/problem)\n  - [Haskell](/src/functional-programming/haskell/filter-array.hs)\n- [Filter Positions in a List](https://www.hackerrank.com/challenges/fp-filter-positions-in-a-list/problem)\n  - [Haskell](/src/functional-programming/haskell/filter-positions.hs)\n- [String Compression](https://www.hackerrank.com/challenges/string-compression/problem)\n  - [Haskell](/src/functional-programming/haskell/string-compression.hs)\n\n### Linux Shell\n- [Let's Echo](https://www.hackerrank.com/challenges/bash-tutorials-lets-echo/problem)\n  - [Solution](/src/linux-shell/lets-echo.sh)\n- [Looping and Skipping](https://www.hackerrank.com/challenges/bash-tutorials---looping-and-skipping/problem)\n  - [Solution](/src/linux-shell/looping-and-skipping.sh)\n- [A Personalized Echo](https://www.hackerrank.com/challenges/bash-tutorials---a-personalized-echo/problem)\n  - [Solution](/src/linux-shell/a-personalized-echo.sh)\n- [Looping with Numbers](/src/linux-shell/looping-with-numbers.sh)\n  - [Solution](/src/linux-shell/looping-with-numbers.sh)\n- [The World of Numbers](https://www.hackerrank.com/challenges/bash-tutorials---the-world-of-numbers/problem)\n  - [Solution](/src/linux-shell/the-world-of-numbers.sh)\n- [Getting started with conditionals](https://www.hackerrank.com/challenges/bash-tutorials---getting-started-with-conditionals/problem)\n  - [Solution](/src/linux-shell/getting-started-with-conditionals.sh)\n- [More on Conditionals](https://www.hackerrank.com/challenges/bash-tutorials---more-on-conditionals/problem)\n  - [Solution](/src/linux-shell/more-on-conditionals.sh)\n\n### Java\n- [Tag Content Extractor](https://www.hackerrank.com/challenges/tag-content-extractor/problem)\n  - [Solution](/src/java/tag-content-extractor.java)\n- [Java Sort](https://www.hackerrank.com/challenges/java-sort/problem)\n  - [Solution](/src/java/java-sort.java)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicheleriva%2Fhackerrank-my-solutions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicheleriva%2Fhackerrank-my-solutions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicheleriva%2Fhackerrank-my-solutions/lists"}