https://github.com/micheleriva/hackerrank-my-solutions
🍿My solutions to HackerRank problems
https://github.com/micheleriva/hackerrank-my-solutions
ai artificial-intelligence bot cpp cpp11 elixir elixir-lang euler hackerrank hackerrank-solutions haskell js mysql regex regexp ruby scala sql
Last synced: about 2 months ago
JSON representation
🍿My solutions to HackerRank problems
- Host: GitHub
- URL: https://github.com/micheleriva/hackerrank-my-solutions
- Owner: micheleriva
- Created: 2018-09-17T21:28:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-24T09:36:33.000Z (almost 6 years ago)
- Last Synced: 2025-02-26T05:51:37.608Z (2 months ago)
- Topics: ai, artificial-intelligence, bot, cpp, cpp11, elixir, elixir-lang, euler, hackerrank, hackerrank-solutions, haskell, js, mysql, regex, regexp, ruby, scala, sql
- Language: Haskell
- Homepage:
- Size: 37.1 KB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# 🍿 My HackerRank Solutions
These days I'm really digging into [HackerRank](https://www.hackerrank.com) and I'm really improving my skills!
I'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 😀
### Index
- [Artificial Intelligence](#artificial-intelligence)
- [Algorithms](#algorithms)
- [Interview Preparation Kit](#interview-preparation-kit)
- [SQL](#sql)
- [Regex](#regex)
- [Euler](#euler)
- [Functional Programming](#functional-programming)
- [Linux Shell](#linux-shell)
- [Java](#java)### Artificial Intelligence
- [Bot Saves Princess](https://www.hackerrank.com/challenges/saveprincess)
- [Solution](/src/js/artificial-intelligence/lib/bot-saves-princess.js)
- [Explanation](/src/js/artificial-intelligence/README.md#bot-saves-princess)### Algorithms
- [Mini-Max Sum](https://www.hackerrank.com/challenges/mini-max-sum/problem)
- [Haskell](/src/algorithms/mini-max-sum.hs)
- [Staircase](https://www.hackerrank.com/challenges/staircase/problem)
- [Haskell](/src/algorithms/staircase.hs)### Interview Preparation Kit
- [Sock Merchant](https://www.hackerrank.com/challenges/sock-merchant/problem)
- [Haskell](/src/interview-preparation/sock-merchant.hs)### SQL
- [Contest Leaderboard](https://www.hackerrank.com/challenges/contest-leaderboard/problem)
- [Solution](/src/SQL/contest-leaderboard.sql)
- [The Report](https://www.hackerrank.com/challenges/the-report/problem)
- [Solution](/src/SQL/the-report.sql)
- [Top Competitors](https://www.hackerrank.com/challenges/full-score/problem)
- [Solution](/src/SQL/top-competitors.sql)
- [Ollivander's Inventory](https://www.hackerrank.com/challenges/harry-potter-and-wands/problem)
- [Solution](/src/SQL/ollivander-s-inventory.sql)
- [Challenges](https://www.hackerrank.com/challenges/challenges/problem)
- [Solution](/src/SQL/challenges.sql)### Regex
##### Plain Regex
- [Matching Specific String](https://www.hackerrank.com/challenges/matching-specific-string/problem)
- [Solution](/src/regex/patterns.rb#L2)
- [Matching Anything But a Newline](https://www.hackerrank.com/challenges/matching-anything-but-new-line/problem)
- [Solution](/src/regex/patterns.rb#L5)
- [Matching Digits & Non-Digit Characters](https://www.hackerrank.com/challenges/matching-digits-non-digit-character/problem)
- [Solution](/src/regex/patterns.rb#L8)
- [Matching Whitespace & Non-Whitespace Character](https://www.hackerrank.com/challenges/matching-whitespace-non-whitespace-character/problem)
- [Solution](/src/regex/patterns.rb#L11)
- [Matching Word & Non-Word Character](https://www.hackerrank.com/challenges/matching-word-non-word/problem)
- [Solution](/src/regex/patterns.rb#L14)
- [Matching Start & End](https://www.hackerrank.com/challenges/matching-start-end/problem)
- [Solution](/src/regex/patterns.rb#L17)
- [Matching Specific Characters](https://www.hackerrank.com/challenges/matching-specific-characters/problem)
- [Solution](/src/regex/patterns.rb#L20)
- [Excluding Specific Characters](https://www.hackerrank.com/challenges/excluding-specific-characters/problem)
- [Solution](/src/regex/patterns.rb#L23)
- [Matching Character Ranges](https://www.hackerrank.com/challenges/matching-range-of-characters/problem)
- [Solution](/src/regex/patterns.rb#L26)
- [Matching {x} Repetitions](https://www.hackerrank.com/challenges/matching-x-repetitions/problem)
- [Solution](/src/regex/patterns.rb#L29)
- [Matching {x, y} Repetitions](https://www.hackerrank.com/challenges/matching-x-y-repetitions/problem)
- [Solution](/src/regex/patterns.rb#L32)
- [Matching Zero Or More Repetitions](https://www.hackerrank.com/challenges/matching-zero-or-more-repetitions/problem)
- [Solution](/src/regex/patterns.rb#L35)
- [Matching Ending Items](https://www.hackerrank.com/challenges/matching-ending-items/problem)
- [Solution](/src/regex/patterns.rb#L38)##### Problems
- [Detecting Valid Latitude and Longitude Pairs](https://www.hackerrank.com/challenges/detecting-valid-latitude-and-longitude/problem)
- [Elixir](/src/regex/elixir/detecting-valid-latitude-and-longitude.ex)
- [Find HackerRank](https://www.hackerrank.com/challenges/find-hackerrank/problem)
- [Elixir](/src/regex/elixir/find-hackerrank.ex)### Euler
- [#1: Multiples of 3 and 5](https://www.hackerrank.com/contests/projecteuler/challenges/euler001)
- [Elixir](/src/euler/01.ex)
- [Haskell](/src/euler/01.hs)
- [C++](/src/euler/01.cpp)### Functional Programming
- [Hello World](https://www.hackerrank.com/challenges/fp-hello-world/problem)
- [Haskell](/src/functional-programming/haskell/hello-world.hs)
- [Scala](/src/functional-programming/scala/hello-world.scala)
- [Elixir](/src/functional-programming/elixir/hello-world.ex)
- [Hello World N Times](https://www.hackerrank.com/challenges/fp-hello-world-n-times/problem)
- [Haskell](/src/functional-programming/haskell/hello-world-n-times.hs)
- [Scala](/src/functional-programming/scala/hello-world-n-times.scala)
- [Elixir](/src/functional-programming/elixir/hello-world-n-times.ex)
- [List Replication](https://www.hackerrank.com/challenges/fp-list-replication/problem)
- [Haskell](/src/functional-programming/haskell/list-replication.hs)
- [Scala](/src/functional-programming/scala/list-replication.scala)
- [Elixir](/src/functional-programming/elixir/list-replication.ex)
- [Reverse a List](https://www.hackerrank.com/challenges/fp-reverse-a-list/problem)
- [Scala](/src/functional-programming/scala/reverse-a-list.scala)
- [Sum of Odd Elements](https://www.hackerrank.com/challenges/fp-sum-of-odd-elements/problem)
- [Scala](/src/functional-programming/scala/sum-of-odd-elements.scala)
- [List Length](https://www.hackerrank.com/challenges/fp-list-length/problem)
- [Scala](/src/functional-programming/scala/list-length.scala)
- [Update List](https://www.hackerrank.com/challenges/fp-update-list/problem)
- [Scala](/src/functional-programming/scala/update-list.scala)
- [Filter Array](https://www.hackerrank.com/challenges/fp-filter-array/problem)
- [Haskell](/src/functional-programming/haskell/filter-array.hs)
- [Filter Positions in a List](https://www.hackerrank.com/challenges/fp-filter-positions-in-a-list/problem)
- [Haskell](/src/functional-programming/haskell/filter-positions.hs)
- [String Compression](https://www.hackerrank.com/challenges/string-compression/problem)
- [Haskell](/src/functional-programming/haskell/string-compression.hs)### Linux Shell
- [Let's Echo](https://www.hackerrank.com/challenges/bash-tutorials-lets-echo/problem)
- [Solution](/src/linux-shell/lets-echo.sh)
- [Looping and Skipping](https://www.hackerrank.com/challenges/bash-tutorials---looping-and-skipping/problem)
- [Solution](/src/linux-shell/looping-and-skipping.sh)
- [A Personalized Echo](https://www.hackerrank.com/challenges/bash-tutorials---a-personalized-echo/problem)
- [Solution](/src/linux-shell/a-personalized-echo.sh)
- [Looping with Numbers](/src/linux-shell/looping-with-numbers.sh)
- [Solution](/src/linux-shell/looping-with-numbers.sh)
- [The World of Numbers](https://www.hackerrank.com/challenges/bash-tutorials---the-world-of-numbers/problem)
- [Solution](/src/linux-shell/the-world-of-numbers.sh)
- [Getting started with conditionals](https://www.hackerrank.com/challenges/bash-tutorials---getting-started-with-conditionals/problem)
- [Solution](/src/linux-shell/getting-started-with-conditionals.sh)
- [More on Conditionals](https://www.hackerrank.com/challenges/bash-tutorials---more-on-conditionals/problem)
- [Solution](/src/linux-shell/more-on-conditionals.sh)### Java
- [Tag Content Extractor](https://www.hackerrank.com/challenges/tag-content-extractor/problem)
- [Solution](/src/java/tag-content-extractor.java)
- [Java Sort](https://www.hackerrank.com/challenges/java-sort/problem)
- [Solution](/src/java/java-sort.java)