diff --git a/10 Days of Statistics/README.md b/10 Days of Statistics/README.md index 3becfa7..ae8b913 100644 --- a/10 Days of Statistics/README.md +++ b/10 Days of Statistics/README.md @@ -1,31 +1,31 @@ # 10 Days of Statistics -| Day | Challenge | Difficulty | Solution | -|:---:|:--------------------------------------------------------------------------------------------------------------------------:|:---------------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| -| 0 | [Mean, Median, and Mode](https://www.hackerrank.com/challenges/s10-basic-statistics) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%200%20-%20Mean%2C%20Median%2C%20and%20Mode/Solution.java) | -| 0 | [Weighted Mean](https://www.hackerrank.com/challenges/s10-weighted-mean) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%200%20-%20Weighted%20Mean/Solution.java) | -| 1 | [Quartiles](https://www.hackerrank.com/challenges/s10-quartiles) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%201%20-%20Quartiles/Solution.java) | -| 1 | [Interquartile Range](https://www.hackerrank.com/challenges/s10-interquartile-range) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%201%20-%20Interquartile%20Range/Solution.java) | -| 1 | [Standard Deviation](https://www.hackerrank.com/challenges/s10-standard-deviation) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%201%20-%20Standard%20Deviation/Solution.java) | -| 2 | [Basic Probability](https://www.hackerrank.com/challenges/s10-mcq-1) | Multiple Choice | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%202%20-%20Basic%20Probability/Solution.txt) | -| 2 | [More Dice](https://www.hackerrank.com/challenges/s10-mcq-2) | Multiple Choice | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%202%20-%20More%20Dice/Solution.txt) | -| 2 | [Compound Event Probability](https://www.hackerrank.com/challenges/s10-mcq-3) | Multiple Choice | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%202%20-%20Compound%20Event%20Probability/Solution.txt) | -| 3 | [Conditional Probability](https://www.hackerrank.com/challenges/s10-mcq-4) | Multiple Choice | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%203%20-%20Conditional%20Probability/Solution.txt) | -| 3 | [Cards of the Same Suit](https://www.hackerrank.com/challenges/s10-mcq-5) | Multiple Choice | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%203%20-%20Cards%20of%20the%20Same%20Suit/Solution.txt) | -| 3 | [Drawing Marbles](https://www.hackerrank.com/challenges/s10-mcq-6) | Multiple Choice | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%203%20-%20Drawing%20Marbles/Solution.txt) | -| 4 | [Binomial Distribution I](https://www.hackerrank.com/challenges/s10-binomial-distribution-1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%204%20-%20Binomial%20Distribution%20I/Solution.java) | -| 4 | [Binomial Distribution II](https://www.hackerrank.com/challenges/s10-binomial-distribution-2) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%204%20-%20Binomial%20Distribution%20II/Solution.java) | -| 4 | [Geometric Distribution I](https://www.hackerrank.com/challenges/s10-geometric-distribution-1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%204%20-%20Geometric%20Distribution%20I/Solution.java) | -| 4 | [Geometric Distribution II](https://www.hackerrank.com/challenges/s10-geometric-distribution-2) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%204%20-%20Geometric%20Distribution%20II/Solution.java) | -| 5 | [Poisson Distribution I](https://www.hackerrank.com/challenges/s10-poisson-distribution-1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%205%20-%20Poisson%20Distribution%20I/Solution.java) | -| 5 | [Poisson Distribution II](https://www.hackerrank.com/challenges/s10-poisson-distribution-2) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%205%20-%20Poisson%20Distribution%20II/Solution.java) | -| 5 | [Normal Distribution I](https://www.hackerrank.com/challenges/s10-normal-distribution-1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%205%20-%20Normal%20Distribution%20I/Solution.java) | -| 5 | [Normal Distribution II](https://www.hackerrank.com/challenges/s10-normal-distribution-2) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%205%20-%20Normal%20Distribution%20II/Solution.java) | -| 6 | [The Central Limit Theorem I](https://www.hackerrank.com/challenges/s10-the-central-limit-theorem-1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%206%20-%20The%20Central%20Limit%20Theorem%20I/Solution.java) | -| 6 | [The Central Limit Theorem II](https://www.hackerrank.com/challenges/s10-the-central-limit-theorem-2) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%206%20-%20The%20Central%20Limit%20Theorem%20II/Solution.java) | -| 6 | [The Central Limit Theorem III](https://www.hackerrank.com/challenges/s10-the-central-limit-theorem-3) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%206%20-%20The%20Central%20Limit%20Theorem%20III/Solution.java) | -| 7 | [Pearson Correlation Coefficient I](https://www.hackerrank.com/challenges/s10-pearson-correlation-coefficient) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%207%20-%20Pearson%20Correlation%20Coefficient%20I/Solution.java) | -| 7 | [Spearman's Rank Correlation Coefficient](https://www.hackerrank.com/challenges/s10-spearman-rank-correlation-coefficient) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%207%20-%20Spearman%27s%20Rank%20Correlation%20Coefficient/Solution.java) | -| 8 | [Least Square Regression Line](https://www.hackerrank.com/challenges/s10-least-square-regression-line) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%208%20-%20Least%20Square%20Regression%20Rate/Solution.java) | -| 8 | [Pearson Correlation Coefficient II](https://www.hackerrank.com/challenges/s10-mcq-7) | Multiple Choice | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%208%20-%20Pearson%20Correlation%20Coefficient%20II/Solution.txt) | -| 9 | [Multiple Linear Regression](https://www.hackerrank.com/challenges/s10-multiple-linear-regression) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%209%20-%20Multiple%20Linear%20Regression/Solution.java) | +| Day | Challenge | Points | Solution | +|:---:|:--------------------------------------------------------------------------------------------------------------------------:|:------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| +| 0 | [Mean, Median, and Mode](https://www.hackerrank.com/challenges/s10-basic-statistics) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%200%20-%20Mean%2C%20Median%2C%20and%20Mode/Solution.java) | +| 0 | [Weighted Mean](https://www.hackerrank.com/challenges/s10-weighted-mean) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%200%20-%20Weighted%20Mean/Solution.java) | +| 1 | [Quartiles](https://www.hackerrank.com/challenges/s10-quartiles) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%201%20-%20Quartiles/Solution.java) | +| 1 | [Interquartile Range](https://www.hackerrank.com/challenges/s10-interquartile-range) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%201%20-%20Interquartile%20Range/Solution.java) | +| 1 | [Standard Deviation](https://www.hackerrank.com/challenges/s10-standard-deviation) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%201%20-%20Standard%20Deviation/Solution.java) | +| 2 | [Basic Probability](https://www.hackerrank.com/challenges/s10-mcq-1) | 10 | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%202%20-%20Basic%20Probability/Solution.txt) | +| 2 | [More Dice](https://www.hackerrank.com/challenges/s10-mcq-2) | 10 | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%202%20-%20More%20Dice/Solution.txt) | +| 2 | [Compound Event Probability](https://www.hackerrank.com/challenges/s10-mcq-3) | 10 | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%202%20-%20Compound%20Event%20Probability/Solution.txt) | +| 3 | [Conditional Probability](https://www.hackerrank.com/challenges/s10-mcq-4) | 10 | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%203%20-%20Conditional%20Probability/Solution.txt) | +| 3 | [Cards of the Same Suit](https://www.hackerrank.com/challenges/s10-mcq-5) | 10 | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%203%20-%20Cards%20of%20the%20Same%20Suit/Solution.txt) | +| 3 | [Drawing Marbles](https://www.hackerrank.com/challenges/s10-mcq-6) | 10 | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%203%20-%20Drawing%20Marbles/Solution.txt) | +| 4 | [Binomial Distribution I](https://www.hackerrank.com/challenges/s10-binomial-distribution-1) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%204%20-%20Binomial%20Distribution%20I/Solution.java) | +| 4 | [Binomial Distribution II](https://www.hackerrank.com/challenges/s10-binomial-distribution-2) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%204%20-%20Binomial%20Distribution%20II/Solution.java) | +| 4 | [Geometric Distribution I](https://www.hackerrank.com/challenges/s10-geometric-distribution-1) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%204%20-%20Geometric%20Distribution%20I/Solution.java) | +| 4 | [Geometric Distribution II](https://www.hackerrank.com/challenges/s10-geometric-distribution-2) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%204%20-%20Geometric%20Distribution%20II/Solution.java) | +| 5 | [Poisson Distribution I](https://www.hackerrank.com/challenges/s10-poisson-distribution-1) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%205%20-%20Poisson%20Distribution%20I/Solution.java) | +| 5 | [Poisson Distribution II](https://www.hackerrank.com/challenges/s10-poisson-distribution-2) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%205%20-%20Poisson%20Distribution%20II/Solution.java) | +| 5 | [Normal Distribution I](https://www.hackerrank.com/challenges/s10-normal-distribution-1) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%205%20-%20Normal%20Distribution%20I/Solution.java) | +| 5 | [Normal Distribution II](https://www.hackerrank.com/challenges/s10-normal-distribution-2) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%205%20-%20Normal%20Distribution%20II/Solution.java) | +| 6 | [The Central Limit Theorem I](https://www.hackerrank.com/challenges/s10-the-central-limit-theorem-1) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%206%20-%20The%20Central%20Limit%20Theorem%20I/Solution.java) | +| 6 | [The Central Limit Theorem II](https://www.hackerrank.com/challenges/s10-the-central-limit-theorem-2) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%206%20-%20The%20Central%20Limit%20Theorem%20II/Solution.java) | +| 6 | [The Central Limit Theorem III](https://www.hackerrank.com/challenges/s10-the-central-limit-theorem-3) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%206%20-%20The%20Central%20Limit%20Theorem%20III/Solution.java) | +| 7 | [Pearson Correlation Coefficient I](https://www.hackerrank.com/challenges/s10-pearson-correlation-coefficient) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%207%20-%20Pearson%20Correlation%20Coefficient%20I/Solution.java) | +| 7 | [Spearman's Rank Correlation Coefficient](https://www.hackerrank.com/challenges/s10-spearman-rank-correlation-coefficient) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%207%20-%20Spearman%27s%20Rank%20Correlation%20Coefficient/Solution.java) | +| 8 | [Least Square Regression Line](https://www.hackerrank.com/challenges/s10-least-square-regression-line) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%208%20-%20Least%20Square%20Regression%20Rate/Solution.java) | +| 8 | [Pearson Correlation Coefficient II](https://www.hackerrank.com/challenges/s10-mcq-7) | 30 | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%208%20-%20Pearson%20Correlation%20Coefficient%20II/Solution.txt) | +| 9 | [Multiple Linear Regression](https://www.hackerrank.com/challenges/s10-multiple-linear-regression) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%209%20-%20Multiple%20Linear%20Regression/Solution.java) | diff --git a/30 Days of Code/Day 18 - Queues and Stacks/Solution.java b/30 Days of Code/Day 18 - Queues and Stacks/Solution.java index 7975675..7c3fd47 100644 --- a/30 Days of Code/Day 18 - Queues and Stacks/Solution.java +++ b/30 Days of Code/Day 18 - Queues and Stacks/Solution.java @@ -8,20 +8,23 @@ import java.util.*; // ArrayDeque "is likely to be faster than Stack when used as a stack, and faster than LinkedList when used as a queue." - Java documentation public class Solution { + /* Stack - using an ArrayDeque */ ArrayDeque dequeAsStack = new ArrayDeque<>(); - ArrayDeque dequeAsQueue = new ArrayDeque<>(); - + void pushCharacter(char ch) { dequeAsStack.push(ch); } - - void enqueueCharacter(char ch) { - dequeAsQueue.add(ch); - } - + char popCharacter() { return dequeAsStack.pop(); } + + /* Queue - using an ArrayDeque */ + ArrayDeque dequeAsQueue = new ArrayDeque<>(); + + void enqueueCharacter(char ch) { + dequeAsQueue.add(ch); + } char dequeueCharacter() { return dequeAsQueue.remove(); diff --git a/30 Days of Code/README.md b/30 Days of Code/README.md index fd0a36b..1f600e5 100644 --- a/30 Days of Code/README.md +++ b/30 Days of Code/README.md @@ -1,34 +1,32 @@ # 30 Days of Code -| Day | Challenge | Difficulty | Solution | -|:---:|:-------------------------------------------------------------------------------------------------------:|:----------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| -| 0 | [Hello, World](https://www.hackerrank.com/challenges/30-hello-world) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2000%20-%20Hello%2C%20World/Solution.java) | -| 1 | [Data Types](https://www.hackerrank.com/challenges/30-data-types) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2001%20-%20Data%20Types/Solution.java) | -| 2 | [Operators](https://www.hackerrank.com/challenges/30-operators) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2002%20-%20Operators/Solution.java) | -| 3 | [Intro to Conditional Statements](https://www.hackerrank.com/challenges/30-conditional-statements) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2003%20-%20Intro%20to%20Conditional%20Statements/Solution.java) | -| 4 | [Class vs. Instance](https://www.hackerrank.com/challenges/30-class-vs-instance) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2004%20-%20Class%20vs.%20Instance/Solution.java) | -| 5 | [Loops](https://www.hackerrank.com/challenges/30-loops) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2005%20-%20Loops/Solution.java) | -| 6 | [Let's Review](https://www.hackerrank.com/challenges/30-review-loop) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2006%20-%20Let's%20Review/Solution.java) | -| 7 | [Arrays](https://www.hackerrank.com/challenges/30-arrays) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2007%20-%20Arrays/Solution.java) | -| 8 | [Dictionaries and Maps](https://www.hackerrank.com/challenges/30-dictionaries-and-maps) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2008%20-%20Dictionaries%20and%20Maps/Solution.java) | -| 9 | [Recursion](https://www.hackerrank.com/challenges/30-recursion) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2009%20-%20Recursion/Solution.java) | -| 10 | [Binary Numbers](https://www.hackerrank.com/challenges/30-binary-numbers) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2010%20-%20Binary%20Numbers/Solution.java) | -| 11 | [2D Arrays](https://www.hackerrank.com/challenges/30-2d-arrays) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2011%20-%202D%20Arrays/Solution.java) | -| 12 | [Inheritance](https://www.hackerrank.com/challenges/30-inheritance) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2012%20-%20Inheritance/Solution.java) | -| 13 | [Abstract Classes](https://www.hackerrank.com/challenges/30-abstract-classes) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2013%20-%20Abstract%20Classes/Solution.java) | -| 14 | [Scope](https://www.hackerrank.com/challenges/30-scope) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2014%20-%20Scope/Solution.java) | -| 15 | [Linked List](https://www.hackerrank.com/challenges/30-linked-list) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2015%20-%20Linked%20List/Solution.java) | -| 16 | [Exceptions - String to Integer](https://www.hackerrank.com/challenges/30-exceptions-string-to-integer) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2016%20-%20Exceptions%20-%20String%20to%20Integer/Solution.java) | -| 17 | [More Exceptions](https://www.hackerrank.com/challenges/30-more-exceptions) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2017%20-%20More%20Exceptions/Solution.java) | -| 18 | [Queues and Stacks](https://www.hackerrank.com/challenges/30-queues-stacks) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2018%20-%20Queues%20and%20Stacks/Solution.java) | -| 19 | [Interfaces](https://www.hackerrank.com/challenges/30-interfaces) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2019%20-%20Interfaces/Solution.java) | -| 20 | [Sorting](https://www.hackerrank.com/challenges/30-sorting) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2020%20-%20Sorting/Solution.java) | -| 21 | [Generics](https://www.hackerrank.com/challenges/30-generics) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2021%20-%20Generics/Solution.java) | -| 22 | [Binary Search Trees](https://www.hackerrank.com/challenges/30-binary-search-trees) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2022%20-%20Binary%20Search%20Trees/Solution.java) | -| 23 | [BST Level-Order Traversal](https://www.hackerrank.com/challenges/30-binary-trees) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2023%20-%20BST%20Level-Order%20Traversal/Solution.java) | -| 24 | [More Linked Lists](https://www.hackerrank.com/challenges/30-linked-list-deletion) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2024%20-%20More%20Linked%20Lists/Solution.java) | -| 25 | [Running Time and Complexity](https://www.hackerrank.com/challenges/30-running-time-and-complexity) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2025%20-%20Running%20Time%20and%20Complexity/Solution.java) | -| 26 | [Nested Logic](https://www.hackerrank.com/challenges/30-nested-logic) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2026%20-%20Nested%20Logic/Solution.java) | -| 27 | [Testing](https://www.hackerrank.com/challenges/30-testing) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2027%20-%20Testing/Solution.java) | -| 28 | [RegEx, Patterns, and Intro to Databases](https://www.hackerrank.com/challenges/30-regex-patterns) | Medium | Coming Soon! | -| 29 | [Bitwise AND](https://www.hackerrank.com/challenges/30-bitwise-and) | Medium | Coming Soon! | +| Day | Challenge | Points | Solution | +|:---:|:-------------------------------------------------------------------------------------------------------:|:------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| +| 0 | [Hello, World](https://www.hackerrank.com/challenges/30-hello-world) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2000%20-%20Hello%2C%20World/Solution.java) | +| 1 | [Data Types](https://www.hackerrank.com/challenges/30-data-types) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2001%20-%20Data%20Types/Solution.java) | +| 2 | [Operators](https://www.hackerrank.com/challenges/30-operators) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2002%20-%20Operators/Solution.java) | +| 3 | [Intro to Conditional Statements](https://www.hackerrank.com/challenges/30-conditional-statements) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2003%20-%20Intro%20to%20Conditional%20Statements/Solution.java) | +| 4 | [Class vs. Instance](https://www.hackerrank.com/challenges/30-class-vs-instance) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2004%20-%20Class%20vs.%20Instance/Solution.java) | +| 5 | [Loops](https://www.hackerrank.com/challenges/30-loops) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2005%20-%20Loops/Solution.java) | +| 6 | [Let's Review](https://www.hackerrank.com/challenges/30-review-loop) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2006%20-%20Let's%20Review/Solution.java) | +| 7 | [Arrays](https://www.hackerrank.com/challenges/30-arrays) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2007%20-%20Arrays/Solution.java) | +| 8 | [Dictionaries and Maps](https://www.hackerrank.com/challenges/30-dictionaries-and-maps) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2008%20-%20Dictionaries%20and%20Maps/Solution.java) | +| 9 | [Recursion](https://www.hackerrank.com/challenges/30-recursion) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2009%20-%20Recursion/Solution.java) | +| 10 | [Binary Numbers](https://www.hackerrank.com/challenges/30-binary-numbers) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2010%20-%20Binary%20Numbers/Solution.java) | +| 11 | [2D Arrays](https://www.hackerrank.com/challenges/30-2d-arrays) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2011%20-%202D%20Arrays/Solution.java) | +| 12 | [Inheritance](https://www.hackerrank.com/challenges/30-inheritance) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2012%20-%20Inheritance/Solution.java) | +| 13 | [Abstract Classes](https://www.hackerrank.com/challenges/30-abstract-classes) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2013%20-%20Abstract%20Classes/Solution.java) | +| 14 | [Scope](https://www.hackerrank.com/challenges/30-scope) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2014%20-%20Scope/Solution.java) | +| 15 | [Linked List](https://www.hackerrank.com/challenges/30-linked-list) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2015%20-%20Linked%20List/Solution.java) | +| 16 | [Exceptions - String to Integer](https://www.hackerrank.com/challenges/30-exceptions-string-to-integer) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2016%20-%20Exceptions%20-%20String%20to%20Integer/Solution.java) | +| 17 | [More Exceptions](https://www.hackerrank.com/challenges/30-more-exceptions) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2017%20-%20More%20Exceptions/Solution.java) | +| 18 | [Queues and Stacks](https://www.hackerrank.com/challenges/30-queues-stacks) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2018%20-%20Queues%20and%20Stacks/Solution.java) | +| 19 | [Interfaces](https://www.hackerrank.com/challenges/30-interfaces) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2019%20-%20Interfaces/Solution.java) | +| 20 | [Sorting](https://www.hackerrank.com/challenges/30-sorting) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2020%20-%20Sorting/Solution.java) | +| 21 | [Generics](https://www.hackerrank.com/challenges/30-generics) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2021%20-%20Generics/Solution.java) | +| 22 | [Binary Search Trees](https://www.hackerrank.com/challenges/30-binary-search-trees) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2022%20-%20Binary%20Search%20Trees/Solution.java) | +| 23 | [BST Level-Order Traversal](https://www.hackerrank.com/challenges/30-binary-trees) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2023%20-%20BST%20Level-Order%20Traversal/Solution.java) | +| 24 | [More Linked Lists](https://www.hackerrank.com/challenges/30-linked-list-deletion) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2024%20-%20More%20Linked%20Lists/Solution.java) | +| 25 | [Running Time and Complexity](https://www.hackerrank.com/challenges/30-running-time-and-complexity) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2025%20-%20Running%20Time%20and%20Complexity/Solution.java) | +| 26 | [Nested Logic](https://www.hackerrank.com/challenges/30-nested-logic) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2026%20-%20Nested%20Logic/Solution.java) | +| 27 | [Testing](https://www.hackerrank.com/challenges/30-testing) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2027%20-%20Testing/Solution.java) | diff --git a/Algorithms/Bit Manipulation/Bit Manipulation - Lonely Integer/Solution.java b/Algorithms/Bit Manipulation/Bit Manipulation - Lonely Integer/Solution.java new file mode 100644 index 0000000..73fd2ea --- /dev/null +++ b/Algorithms/Bit Manipulation/Bit Manipulation - Lonely Integer/Solution.java @@ -0,0 +1,33 @@ +// Author: Rodney Shaghoulian +// Github: github.com/rshaghoulian +// HackerRank: hackerrank.com/rshaghoulian + +import java.util.Scanner; + +// O(n) runtime. O(1) space. Uses XOR. Keep in mind: +// 1) x ^ x = 0 +// 2) x ^ 0 = x +// 3) XOR is commutative and associative +public class Solution { + public static void main(String [] args) { + /* Read input */ + Scanner scan = new Scanner(System.in); + int n = scan.nextInt(); + int [] array = new int[n]; + for(int i = 0; i < n; i++){ + array[i] = scan.nextInt(); + } + scan.close(); + + System.out.println(lonelyInteger(array)); + } + + /* XORs all numbers in array together */ + public static int lonelyInteger(int [] array) { + int val = 0; + for (int num : array) { + val = val ^ num; // ^ is XOR operator + } + return val; + } +} diff --git a/Algorithms/Bit Manipulation/Counter game/Solution.java b/Algorithms/Bit Manipulation/Counter game/Solution.java new file mode 100644 index 0000000..a556c0b --- /dev/null +++ b/Algorithms/Bit Manipulation/Counter game/Solution.java @@ -0,0 +1,53 @@ +// Author: Rodney Shaghoulian +// Github: github.com/rshaghoulian +// HackerRank: hackerrank.com/rshaghoulian + +import java.util.Scanner; +import java.math.BigInteger; + +// Case 1: If N is not a power of 2, reduce the counter by the largest power of 2 less than N +// +// This is equivalent to turning the most significant 1 in N to 0. This operation will keep +// repeating until we reach Case 2. To count the number of times we have to do Case 1's operation +// we can count the number of 1s in our original number (except for the least significant 1). + +// Case 2: If N is a power of 2, we must "reduce the counter by half of N". +// +// This is equivalent of doing a right shift. This operation keeps repeating until the game ends. +// The number of right shifts we do depends on the number of trailing 0s. + +// Additional optimization: +// +// Instead of counting the number of times Case 1 and Case 2 happen separately, we can just +// calculate the number of 1s in N-1. This is because subtracting 1 from our number will turn +// all of the trailing 0s (which we wanted to count) into 1s that we can count (for example: +// 10000 would become 01111) + +// Example: +// +// 10110100 Case 1 +// 110100 Case 1 +// 10100 Case 1 +// 100 Case 2 +// 10 Case 2 +// 1 Done +// +// We had 5 operations total. Directly applying our algorithm would look like this: +// +// Original Number: 10110100 +// Number - 1 : 10110011 and the number of 1s is 5 + +// We use a BigInteger instead of a long since we can't easily read in an UNSIGNED long. + +public class Solution { + public static void main(String [] args) { + Scanner scan = new Scanner(System.in); + int T = scan.nextInt(); + while (T-- > 0) { + BigInteger N = new BigInteger(scan.next()); + N = N.subtract(BigInteger.ONE); + System.out.println(N.bitCount() % 2 == 0 ? "Richard" : "Louise"); + } + scan.close(); + } +} diff --git a/Algorithms/Bit Manipulation/Maximizing XOR/Solution.java b/Algorithms/Bit Manipulation/Maximizing XOR/Solution.java new file mode 100644 index 0000000..15613ac --- /dev/null +++ b/Algorithms/Bit Manipulation/Maximizing XOR/Solution.java @@ -0,0 +1,34 @@ +// Author: Rodney Shaghoulian +// Github: github.com/rshaghoulian +// HackerRank: hackerrank.com/rshaghoulian + +import java.util.Scanner; + +// To maximize A xor B, we want A and B to differ as much as possible at every bit index. +// We first find the most significant bit that we can force to differ by looking at L and R. +// For all of the lesser significant bits in A and B, we can always ensure that they differ +// and still have L <= A <= B <= R. Our final answer will be the number represented by all +// 1s starting from the most significant bit that differs between A and B + +// Example: +// L = 10111 +// R = 11100 +// _X___ <-- that's most significant differing bit +// 01111 <-- here's our final answer +// +// Notice that we never directly calculate the values of A and B + +public class Solution { + public static void main(String [] args) { + Scanner scan = new Scanner(System.in); + int L = scan.nextInt(); + int R = scan.nextInt(); + scan.close(); + + int xored = L ^ R; + int significantBit = 31 - Integer.numberOfLeadingZeros(xored); + int result = (1 << (significantBit + 1)) - 1; + + System.out.println(result); + } +} diff --git a/Algorithms/Bit Manipulation/Sansa and XOR/Solution.java b/Algorithms/Bit Manipulation/Sansa and XOR/Solution.java new file mode 100644 index 0000000..e2824b0 --- /dev/null +++ b/Algorithms/Bit Manipulation/Sansa and XOR/Solution.java @@ -0,0 +1,55 @@ +// Author: Rodney Shaghoulian +// Github: github.com/rshaghoulian +// HackerRank: hackerrank.com/rshaghoulian + +import java.util.Scanner; + +// XOR properties: +// 1) x ^ x = 0 +// 2) x ^ 0 = x + +// We know that a number XORed with itself is 0. Instead of calculating the subarrays directly, +// we calculate the number of times each number appears in any subarray. If it appears an even +// number of times, then (x ^ x ... ^ x) where there is an even number of "x" values will give 0. +// If there are an odd number of "x" values, the result will be "x". +// +// *** Case 1: n is even *** +// +// Each element appears an even number of times throughout the subarrays, so the answer is 0. +// +// *** Case 2: n is odd *** +// +// We notice that the odd-indexed elements appear an even number of times throughout the +// subarrays, so xoring them together will give 0, so we can ignore the odd-indexed elements. +// +// The even-indexed elements in the original subarray will appear an odd number of times +// throughout the subarrays. We can go ahead and XOR the values of the even-indexed elements +// in the original array to get our final answer. + +// Time Complexity: O(n) + +public class Solution { + public static void main(String [] args) { + Scanner scan = new Scanner(System.in); + int T = scan.nextInt(); + while (T-- > 0) { + int n = scan.nextInt(); + int [] array = new int[n]; + for (int i = 0; i < n; i++) { + array[i] = scan.nextInt(); + } + if (n % 2 == 0) { // Case 1 + System.out.println(0); + } else { // Case 2 + int result = 0; + for (int i = 0; i < n; i++) { + if (i % 2 == 0) { + result ^= array[i]; + } + } + System.out.println(result); + } + } + scan.close(); + } +} diff --git a/Algorithms/Bit Manipulation/Sum vs XOR/Solution.java b/Algorithms/Bit Manipulation/Sum vs XOR/Solution.java new file mode 100644 index 0000000..390e06b --- /dev/null +++ b/Algorithms/Bit Manipulation/Sum vs XOR/Solution.java @@ -0,0 +1,39 @@ +// Author: Rodney Shaghoulian +// Github: github.com/rshaghoulian +// HackerRank: hackerrank.com/rshaghoulian + +import java.util.Scanner; + +// XOR represents binary addition without the "carry" for each digit. We want to see +// how many values of x that will give us n+x = n^x, which is when XOR is the same as +// ADDITION. This happens when there are no "carries". To make sure there are no +// carries, for each digit in "n" that is a 1, we must have the corresponding digit in +// "x" be a 0. For each digit in "n" that is a 0, we can have the corresponding digit +// in "x" be either 0 or 1. Now we calculate the number of possibilities for "x" by +// counting the number of 0s in "n" (up to the most significant 1 in n), and doing +// 2^(number of 0s) (where ^ is exponentiation in this case) to count all combinations. + +public class Solution { + public static void main(String [] args) { + /* Save input */ + Scanner scan = new Scanner(System.in); + long n = scan.nextLong(); + scan.close(); + + /* Calculate number of "x" values that will satisfy n+x = n^x */ + int zeroes = numZeroes(n); + long result = 1L << zeroes; // same as (long) Math.pow(2, zeroes); + System.out.println(result); + } + + private static int numZeroes(long n) { + int count = 0; + while (n > 0) { + if ((n & 1) == 0) { + count++; + } + n >>= 1; // divides by 2 + } + return count; + } +} diff --git a/Algorithms/README.md b/Algorithms/README.md index 5b5a3c8..7f36b70 100644 --- a/Algorithms/README.md +++ b/Algorithms/README.md @@ -34,78 +34,25 @@ | Implementation | [Sherlock and Squares](https://www.hackerrank.com/challenges/sherlock-and-squares) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Sherlock%20and%20Squares/Solution.java) | | Implementation | [Library Fine](https://www.hackerrank.com/challenges/library-fine) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Library%20Fine/Solution.java) | | Implementation | [Cut the sticks](https://www.hackerrank.com/challenges/cut-the-sticks) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Cut%20the%20sticks/Solution.java) | -| Implementation | [Non-Divisible Subset](https://www.hackerrank.com/challenges/non-divisible-subset) | Medium | Coming Soon! | | Implementation | [Repeated String](https://www.hackerrank.com/challenges/repeated-string) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Repeated%20String/Solution.java) | | Implementation | [Jumping on the Clouds](https://www.hackerrank.com/challenges/jumping-on-the-clouds) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Jumping%20on%20the%20Clouds/Solution.java) | | Implementation | [Equalize the Array](https://www.hackerrank.com/challenges/equality-in-a-array) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Equalize%20the%20Array/Solution.java) | -| Implementation | [ACM ICPC Team](https://www.hackerrank.com/challenges/acm-icpc-team) | Easy | Coming Soon! | | Implementation | [Taum and B'day](https://www.hackerrank.com/challenges/taum-and-bday) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Taum%20and%20B%27day/Solution.java) | -| Implementation | [Organizing Containers of Balls](https://www.hackerrank.com/challenges/organizing-containers-of-balls) | Medium | Coming Soon! | -| Implementation | [Encryption](https://www.hackerrank.com/challenges/encryption) | Medium | Coming Soon! | -| Implementation | [Bigger is Greater](https://www.hackerrank.com/challenges/bigger-is-greater) | Medium | Coming Soon! | | Implementation | [Modified Kaprekar Numbers](https://www.hackerrank.com/challenges/kaprekar-numbers) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Modified%20Kaprekar%20Numbers/Solution.java) | | Implementation | [Beautiful Triplets](https://www.hackerrank.com/challenges/beautiful-triplets) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Beautiful%20Triplets/Solution.java) | | Implementation | [Manasa and Stones](https://www.hackerrank.com/challenges/manasa-and-stones) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Manasa%20and%20Stones/Solution.java) | -| Implementation | [Minimum Distances](https://www.hackerrank.com/challenges/minimum-distances) | Easy | Coming Soon! | -| Implementation | [The Time in Words](https://www.hackerrank.com/challenges/the-time-in-words) | Medium | Coming Soon! | -| Implementation | [Cavity Map](https://www.hackerrank.com/challenges/cavity-map) | Easy | Coming Soon! | -| Implementation | [Chocolate Feast](https://www.hackerrank.com/challenges/chocolate-feast) | Easy | Coming Soon! | -| Implementation | [Service Lane](https://www.hackerrank.com/challenges/service-lane) | Easy | Coming Soon! | -| Implementation | [Lisa's Workbook](https://www.hackerrank.com/challenges/lisa-workbook) | Easy | Coming Soon! | -| Implementation | [The Grid Search](https://www.hackerrank.com/challenges/the-grid-search) | Medium | Coming Soon! | -| Implementation | [Flatland Space Stations](https://www.hackerrank.com/challenges/flatland-space-stations) | Easy | Coming Soon! | -| Implementation | [Fair Rations](https://www.hackerrank.com/challenges/fair-rations) | Easy | Coming Soon! | -| Implementation | [Happy Ladybugs](https://www.hackerrank.com/challenges/happy-ladybugs) | Easy | Coming Soon! | -| Implementation | [Strange Counter](https://www.hackerrank.com/challenges/strange-code) | Easy | Coming Soon! | -| Implementation | [Almost Sorted](https://www.hackerrank.com/challenges/almost-sorted) | Medium | Coming Soon! | -| Implementation | [Absolute Permutation](https://www.hackerrank.com/challenges/absolute-permutation) | Medium | Coming Soon! | -| Implementation | [The Bomberman Game](https://www.hackerrank.com/challenges/bomber-man) | Medium | Coming Soon! | -| Implementation | [Ema's Supercomputer](https://www.hackerrank.com/challenges/two-pluses) | Medium | Coming Soon! | -| Implementation | [Larry's Array](https://www.hackerrank.com/challenges/larrys-array) | Medium | Coming Soon! | -| Implementation | [Matrix Layer Rotation](https://www.hackerrank.com/challenges/matrix-rotation-algo) | Hard | Coming Soon! | | Strings | [Super Reduced String](https://www.hackerrank.com/challenges/reduced-string) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Super%20Reduced%20String/Solution.java) | | Strings | [CamelCase](https://www.hackerrank.com/challenges/camelcase) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/CamelCase/Solution.java) | | Strings | [Two Characters](https://www.hackerrank.com/challenges/two-characters) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Two%20Characters/Solution.java) | | Strings | [Caesar Cipher](https://www.hackerrank.com/challenges/caesar-cipher-1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Caesar%20Cipher/Solution.java) | -| Strings | [Mars Exploration](https://www.hackerrank.com/challenges/mars-exploration) | Easy | Coming Soon! | +| Strings | [Mars Exploration](https://www.hackerrank.com/challenges/mars-exploration) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Mars%20Exploration/Solution.java) | | Strings | [HackerRank in a String!](https://www.hackerrank.com/challenges/hackerrank-in-a-string) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/HackerRank%20in%20a%20String!/Solution.java) | | Strings | [Pangrams](https://www.hackerrank.com/challenges/pangrams) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Pangrams/Solution.java) | | Strings | [Weighted Uniform Strings](https://www.hackerrank.com/challenges/weighted-uniform-string) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Weighted%20Uniform%20Strings/Solution.java) | -| Strings | [Separate the Numbers](https://www.hackerrank.com/challenges/separate-the-numbers) | Easy | Coming Soon! | -| Strings | [Funny String](https://www.hackerrank.com/challenges/funny-string) | Easy | Coming Soon! | -| Strings | [Gemstones](https://www.hackerrank.com/challenges/gem-stones) | Easy | Coming Soon! | -| Strings | [Alternating Characters](https://www.hackerrank.com/challenges/alternating-characters) | Easy | Coming Soon! | -| Strings | [Beautiful Binary String](https://www.hackerrank.com/challenges/beautiful-binary-string) | Easy | Coming Soon! | -| Strings | [The Love-Letter Mystery](https://www.hackerrank.com/challenges/the-love-letter-mystery) | Easy | Coming Soon! | -| Strings | [Palindrome Index](https://www.hackerrank.com/challenges/palindrome-index) | Easy | Coming Soon! | -| Strings | [Anagram](https://www.hackerrank.com/challenges/anagram) | Easy | Coming Soon! | +| Strings | [Gemstones](https://www.hackerrank.com/challenges/gem-stones) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Gemstones/Solution.java) | +| Strings | [Alternating Characters](https://www.hackerrank.com/challenges/alternating-characters) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Alternating%20Characters/Solution.java) | +| Strings | [The Love-Letter Mystery](https://www.hackerrank.com/challenges/the-love-letter-mystery) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/The%20Love-Letter%20Mystery/Solution.java) | | Strings | [Making Anagrams](https://www.hackerrank.com/challenges/making-anagrams) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Making%20Anagrams/Solution.java) | -| Strings | [Game of Thrones - I](https://www.hackerrank.com/challenges/game-of-thrones) | Easy | Coming Soon! | -| Strings | [Two Strings](https://www.hackerrank.com/challenges/two-strings) | Easy | Coming Soon! | -| Strings | [String Construction](https://www.hackerrank.com/challenges/string-construction) | Easy | Coming Soon! | -| Strings | [Sherlock and Valid String](https://www.hackerrank.com/challenges/sherlock-and-valid-string) | Hard | Coming Soon! | -| Strings | [Richie Rich](https://www.hackerrank.com/challenges/richie-rich) | Medium | Coming Soon! | -| Strings | [Sherlock and Anagrams](https://www.hackerrank.com/challenges/sherlock-and-anagrams) | Medium | Coming Soon! | -| Strings | [Common Child](https://www.hackerrank.com/challenges/common-child) | Hard | Coming Soon! | -| Strings | [Bear and Steady Gene](https://www.hackerrank.com/challenges/bear-and-steady-gene) | Medium | Coming Soon! | -| Strings | [Morgan and a String](https://www.hackerrank.com/challenges/morgan-and-a-string) | Expert | Coming Soon! | -| Strings | [Count Strings](https://www.hackerrank.com/challenges/count-strings) | Hard | Coming Soon! | -| Strings | [String Function Calculation](https://www.hackerrank.com/challenges/string-function-calculation) | Advanced | Coming Soon! | -| Strings | [Build a Palindrome](https://www.hackerrank.com/challenges/challenging-palindromes) | Advanced | Coming Soon! | -| Strings | [Build a String](https://www.hackerrank.com/challenges/build-a-string) | Hard | Coming Soon! | -| Strings | [Gridland Provinces](https://www.hackerrank.com/challenges/gridland-provinces) | Hard | Coming Soon! | -| Strings | [Ashton and String](https://www.hackerrank.com/challenges/ashton-and-string) | Advanced | Coming Soon! | -| Strings | [String Similarity](https://www.hackerrank.com/challenges/string-similarity) | Expert | Coming Soon! | -| Strings | [Super Functional Strings](https://www.hackerrank.com/challenges/super-functional-strings) | Advanced | Coming Soon! | -| Strings | [Circular Palindromes](https://www.hackerrank.com/challenges/circular-palindromes) | Advanced | Coming Soon! | -| Strings | [Similar Strings](https://www.hackerrank.com/challenges/similar-strings) | Advanced | Coming Soon! | -| Strings | [Save Humanity](https://www.hackerrank.com/challenges/save-humanity) | Expert | Coming Soon! | -| Strings | [Find Strings](https://www.hackerrank.com/challenges/find-strings) | Expert | Coming Soon! | -| Strings | [Palindromic Border](https://www.hackerrank.com/challenges/palindromic-border) | Expert | Coming Soon! | -| Strings | [Two Two](https://www.hackerrank.com/challenges/two-two) | Advanced | Coming Soon! | -| Strings | [Two Strings Game](https://www.hackerrank.com/challenges/two-strings-game) | Expert | Coming Soon! | -| Strings | [Letter Islands](https://www.hackerrank.com/challenges/letter-islands) | Expert | Coming Soon! | -| Strings | [Pseudo-Isomorphic Substrings](https://www.hackerrank.com/challenges/pseudo-isomorphic-substrings) | Expert | Coming Soon! | | Sorting | [Intro to Tutorial Challenges](https://www.hackerrank.com/challenges/tutorial-intro) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Sorting/Intro%20to%20Tutorial%20Challenges/Solution.java) | | Sorting | [Insertion Sort - Part 1](https://www.hackerrank.com/challenges/insertionsort1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Sorting/Insertion%20Sort%20-%20Part%201/Solution.java) | | Sorting | [Insertion Sort - Part 2](https://www.hackerrank.com/challenges/insertionsort2) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Sorting/Insertion%20Sort%20-%20Part%202/Solution.java) | @@ -119,256 +66,19 @@ | Sorting | [Counting Sort 2](https://www.hackerrank.com/challenges/countingsort2) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Sorting/Counting%20Sort%202/Solution.java) | | Sorting | [Counting Sort 3](https://www.hackerrank.com/challenges/countingsort3) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Sorting/Counting%20Sort%203/Solution.java) | | Sorting | [The Full Counting Sort](https://www.hackerrank.com/challenges/countingsort4) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Sorting/The%20Full%20Counting%20Sort/Solution.java) | -| Sorting | [Closest Numbers](https://www.hackerrank.com/challenges/closest-numbers) | Easy | Coming Soon! | -| Sorting | [Find the Median](https://www.hackerrank.com/challenges/find-the-median) | Easy | Coming Soon! | -| Sorting | [Insertion Sort Advanced Analysis](https://www.hackerrank.com/challenges/insertion-sort) | Advanced | Coming Soon! | -| Sorting | [Fraudulent Activity Notifications](https://www.hackerrank.com/challenges/fraudulent-activity-notifications) | Medium | Coming Soon! | -| Sorting | [Lily's Homework](https://www.hackerrank.com/challenges/lilys-homework) | Medium | Coming Soon! | -| Search | [Hackerland Radio Transmitters](https://www.hackerrank.com/challenges/hackerland-radio-transmitters) | Easy | Coming Soon! | | Search | [Ice Cream Parlor](https://www.hackerrank.com/challenges/icecream-parlor) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Search/Ice%20Cream%20Parlor/Solution.java) | -| Search | [Gridland Metro](https://www.hackerrank.com/challenges/gridland-metro) | Medium | Coming Soon! | -| Search | [Missing Numbers](https://www.hackerrank.com/challenges/missing-numbers) | Easy | Coming Soon! | -| Search | [Pairs](https://www.hackerrank.com/challenges/pairs) | Medium | Coming Soon! | -| Search | [Sherlock and Array](https://www.hackerrank.com/challenges/sherlock-and-array) | Easy | Coming Soon! | -| Search | [Maximum Subarray Sum](https://www.hackerrank.com/challenges/maximum-subarray-sum) | Hard | Coming Soon! | | Search | [Connected Cells in a Grid](https://www.hackerrank.com/challenges/connected-cell-in-a-grid) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Search/Connected%20Cells%20in%20a%20Grid/Solution.java) | -| Search | [Short Palindrome](https://www.hackerrank.com/challenges/short-palindrome) | Medium | Coming Soon! | -| Search | [Count Luck](https://www.hackerrank.com/challenges/count-luck) | Medium | Coming Soon! | -| Search | [Cut the Tree](https://www.hackerrank.com/challenges/cut-the-tree) | Medium | Coming Soon! | -| Search | [Making Candies](https://www.hackerrank.com/challenges/making-candies) | Hard | Coming Soon! | -| Search | [Gene Playing Hanoi](https://www.hackerrank.com/challenges/gena) | Medium | Coming Soon! | -| Search | [Beautiful Quadruples](https://www.hackerrank.com/challenges/xor-quadruples) | Medium | Coming Soon! | -| Search | [Bike Racers](https://www.hackerrank.com/challenges/bike-racers) | Hard | Coming Soon! | -| Search | [Task Scheduling](https://www.hackerrank.com/challenges/task-scheduling) | Advanced | Coming Soon! | -| Search | [Similar Pair](https://www.hackerrank.com/challenges/similarpair) | Advanced | Coming Soon! | -| Search | [Absolute Element Sums](https://www.hackerrank.com/challenges/playing-with-numbers) | Hard | Coming Soon! | -| Search | [Sorted Subsegments](https://www.hackerrank.com/challenges/sorted-subsegments) | Hard | Coming Soon! | -| Search | [King Richard's Knights](https://www.hackerrank.com/challenges/king-richards-knights) | Hard | Coming Soon! | -| Graph Theory | [Journey to the Moon](https://www.hackerrank.com/challenges/journey-to-the-moon) | Medium | Coming Soon! | -| Graph Theory | [Synchronous Shopping](https://www.hackerrank.com/challenges/synchronous-shopping) | Medium | Coming Soon! | -| Graph Theory | [Subset Component](https://www.hackerrank.com/challenges/subset-component) | Hard | Coming Soon! | | Graph Theory | [Breadth First Search - Shortest Reach](https://www.hackerrank.com/challenges/bfsshortreach) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Graph%20Theory/Breadth%20First%20Search%20-%20Shortest%20Reach/Solution.java) | -| Graph Theory | [Kruskal (MST) - Really Special Subtree](https://www.hackerrank.com/challenges/kruskalmstrsub) | Hard | Coming Soon! | -| Graph Theory | [Even Tree](https://www.hackerrank.com/challenges/even-tree) | Medium | Coming Soon! | -| Graph Theory | [Snakes and Ladders - The Quickest Way Up](https://www.hackerrank.com/challenges/the-quickest-way-up) | Medium | Coming Soon! | -| Graph Theory | [Dijkstra - Shortest Reach 2](https://www.hackerrank.com/challenges/dijkstrashortreach) | Hard | Coming Soon! | -| Graph Theory | [Prim's (MST) - Special Subtree](https://www.hackerrank.com/challenges/primsmstsub) | Medium | Coming Soon! | -| Graph Theory | [Clique](https://www.hackerrank.com/challenges/clique) | Medium | Coming Soon! | -| Graph Theory | [Minimum Penalty Path](https://www.hackerrank.com/challenges/beautiful-path) | Medium | Coming Soon! | -| Graph Theory | [Demanding Money](https://www.hackerrank.com/challenges/borrowing-money) | Hard | Coming Soon! | -| Graph Theory | [Jack goes to Rapture](https://www.hackerrank.com/challenges/jack-goes-to-rapture) | Medium | Coming Soon! | -| Graph Theory | [Crab Graphs](https://www.hackerrank.com/challenges/crab-graphs) | Medium | Coming Soon! | -| Graph Theory | [Bead Ornaments](https://www.hackerrank.com/challenges/beadornaments) | Advanced | Coming Soon! | -| Graph Theory | [Jeanie's Route](https://www.hackerrank.com/challenges/jeanies-route) | Medium | Coming Soon! | -| Graph Theory | [Floyd - City of Blinding Lights](https://www.hackerrank.com/challenges/floyd-city-of-blinding-lights) | Hard | Coming Soon! | -| Graph Theory | [Roads in HackerLand](https://www.hackerrank.com/challenges/johnland) | Medium | Coming Soon! | -| Graph Theory | [Kingdom Connectivity](https://www.hackerrank.com/challenges/kingdom-connectivity) | Hard | Coming Soon! | -| Graph Theory | [Computer Game](https://www.hackerrank.com/challenges/computer-game) | Hard | Coming Soon! | -| Graph Theory | [Rust & Murderer](https://www.hackerrank.com/challenges/rust-murderer) | Medium | Coming Soon! | -| Graph Theory | [Problem solving](https://www.hackerrank.com/challenges/problem-solving) | Hard | Coming Soon! | -| Graph Theory | [Journey Scheduling](https://www.hackerrank.com/challenges/journey-scheduling) | Hard | Coming Soon! | -| Graph Theory | [Matrix](https://www.hackerrank.com/challenges/matrix) | Hard | Coming Soon! | -| Graph Theory | [Recording Episodes](https://www.hackerrank.com/challenges/episode-recording) | Hard | Coming Soon! | -| Graph Theory | [Repair Roads](https://www.hackerrank.com/challenges/repair-roads) | Hard | Coming Soon! | -| Graph Theory | [Kth Ancestor](https://www.hackerrank.com/challenges/kth-ancestor) | Hard | Coming Soon! | -| Graph Theory | [ByteLandian Tours](https://www.hackerrank.com/challenges/bytelandian-tours) | Hard | Coming Soon! | -| Graph Theory | [Find the Path](https://www.hackerrank.com/challenges/shortest-path) | Hard | Coming Soon! | -| Graph Theory | [Savita And Friends](https://www.hackerrank.com/challenges/savita-and-friends) | Hard | Coming Soon! | -| Graph Theory | [Liars](https://www.hackerrank.com/challenges/liars) | Advanced | Coming Soon! | -| Graph Theory | [Jumping Rooks](https://www.hackerrank.com/challenges/jumping-rooks) | Advanced | Coming Soon! | -| Graph Theory | [Tripartite Matching](https://www.hackerrank.com/challenges/tripartite-matching) | Hard | Coming Soon! | -| Graph Theory | [Tree Flow](https://www.hackerrank.com/challenges/tree-flow) | Hard | Coming Soon! | -| Graph Theory | [DAG Queries](https://www.hackerrank.com/challenges/dag-queries) | Expert | Coming Soon! | -| Graph Theory | [Favorite sequence](https://www.hackerrank.com/challenges/favourite-sequence) | Advanced | Coming Soon! | -| Graph Theory | [Jogging Cats](https://www.hackerrank.com/challenges/cat-jogging) | Advanced | Coming Soon! | -| Graph Theory | [Quadrant Queries](https://www.hackerrank.com/challenges/quadrant-queries) | Advanced | Coming Soon! | -| Graph Theory | [Hacker Country](https://www.hackerrank.com/challenges/hacker-country) | Hard | Coming Soon! | -| Graph Theory | [HackerX](https://www.hackerrank.com/challenges/missile-defend) | Hard | Coming Soon! | -| Graph Theory | [Huarongdao](https://www.hackerrank.com/challenges/huarongdao) | Expert | Coming Soon! | -| Graph Theory | [Training the army](https://www.hackerrank.com/challenges/training-the-army) | Hard | Coming Soon! | -| Graph Theory | [Jim and his LAN Party](https://www.hackerrank.com/challenges/jim-and-his-lan-party) | Hard | Coming Soon! | -| Graph Theory | [Travel in HackerLand](https://www.hackerrank.com/challenges/travel-in-hackerland) | Hard | Coming Soon! | -| Graph Theory | [Alex vs Fedor](https://www.hackerrank.com/challenges/alex-vs-fedor) | Expert | Coming Soon! | -| Graph Theory | [Vertical Paths](https://www.hackerrank.com/challenges/vertical-paths) | Expert | Coming Soon! | -| Graph Theory | [Drive](https://www.hackerrank.com/challenges/drive) | Expert | Coming Soon! | -| Graph Theory | [Travelling Salesman in a Grid](https://www.hackerrank.com/challenges/tsp-grid) | Expert | Coming Soon! | -| Graph Theory | [Road Network](https://www.hackerrank.com/challenges/road-network) | Expert | Coming Soon! | -| Graph Theory | [Going to the Office](https://www.hackerrank.com/challenges/going-office) | Expert | Coming Soon! | -| Graph Theory | [Tree Splitting](https://www.hackerrank.com/challenges/tree-splitting) | Advanced | Coming Soon! | -| Graph Theory | [Ticket](https://www.hackerrank.com/challenges/ticket) | Expert | Coming Soon! | | Greedy | [Minimum Absolute Difference in an Array](https://www.hackerrank.com/challenges/minimum-absolute-difference-in-an-array) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Greedy/Minimum%20Absolute%20Difference%20in%20an%20Array/Solution.java) | | Greedy | [Marc's Cakewalk](https://www.hackerrank.com/challenges/marcs-cakewalk) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Greedy/Marc%27s%20Cakewalk/Solution.java) | | Greedy | [Grid Challenge](https://www.hackerrank.com/challenges/grid-challenge) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Greedy/Grid%20Challenge/Solution.java) | | Greedy | [Luck Balance](https://www.hackerrank.com/challenges/luck-balance) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Greedy/Luck%20Balance/Solution.java) | | Greedy | [Maximum Perimeter Triangle](https://www.hackerrank.com/challenges/maximum-perimeter-triangle) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Greedy/Maximum%20Perimeter%20Triangle/Solution.java) | | Greedy | [Beautiful Pairs](https://www.hackerrank.com/challenges/beautiful-pairs) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Greedy/Beautiful%20Pairs/Solution.java) | -| Greedy | [Sherlock and The Beast](https://www.hackerrank.com/challenges/sherlock-and-the-beast) | Easy | Coming Soon! | -| Greedy | [Priyanka and Toys](https://www.hackerrank.com/challenges/priyanka-and-toys) | Easy | Coming Soon! | -| Greedy | [Largest Permutation](https://www.hackerrank.com/challenges/largest-permutation) | Easy | Coming Soon! | -| Greedy | [Mark and Toys](https://www.hackerrank.com/challenges/mark-and-toys) | Easy | Coming Soon! | -| Greedy | [Greedy Florist](https://www.hackerrank.com/challenges/greedy-florist) | Medium | Coming Soon! | -| Greedy | [Max Min](https://www.hackerrank.com/challenges/angry-children) | Medium | Coming Soon! | -| Greedy | [Jim and the Orders](https://www.hackerrank.com/challenges/jim-and-the-orders) | Easy | Coming Soon! | -| Greedy | [Permuting Two Arrays](https://www.hackerrank.com/challenges/two-arrays) | Easy | Coming Soon! | -| Greedy | [Cutting Boards](https://www.hackerrank.com/challenges/board-cutting) | Hard | Coming Soon! | -| Greedy | [Reverse Shuffle Merge](https://www.hackerrank.com/challenges/reverse-shuffle-merge) | Advanced | Coming Soon! | -| Greedy | [Goodland Electricity](https://www.hackerrank.com/challenges/pylons) | Medium | Coming Soon! | -| Greedy | [Chief Hopper](https://www.hackerrank.com/challenges/chief-hopper) | Hard | Coming Soon! | -| Greedy | [Sherlock and MiniMax](https://www.hackerrank.com/challenges/sherlock-and-minimax) | Hard | Coming Soon! | -| Greedy | [Accessory Collection](https://www.hackerrank.com/challenges/accessory-collection) | Hard | Coming Soon! | -| Greedy | [Team Formation](https://www.hackerrank.com/challenges/team-formation) | Advanced | Coming Soon! | -| Greedy | [Fighting Pits](https://www.hackerrank.com/challenges/fighting-pits) | Hard | Coming Soon! | | Dynamic Programming | [The Coin Change Problem](https://www.hackerrank.com/challenges/coin-change) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Dynamic%20Programming/The%20Coin%20Change%20Problem/Solution.java) | -| Dynamic Programming | [Equal](https://www.hackerrank.com/challenges/equal) | Medium | Coming Soon! | -| Dynamic Programming | [Sherlock and Cost](https://www.hackerrank.com/challenges/sherlock-and-cost) | Medium | Coming Soon! | -| Dynamic Programming | [Vertical Sticks](https://www.hackerrank.com/challenges/vertical-sticks) | Medium | Coming Soon! | -| Dynamic Programming | [Candies](https://www.hackerrank.com/challenges/candies) | Medium | Coming Soon! | -| Dynamic Programming | [Angry Children 2](https://www.hackerrank.com/challenges/angry-children-2) | Hard | Coming Soon! | -| Dynamic Programming | [Sam and sub-strings](https://www.hackerrank.com/challenges/sam-and-substrings) | Medium | Coming Soon! | -| Dynamic Programming | [Fibonacci Modified](https://www.hackerrank.com/challenges/fibonacci-modified) | Medium | Coming Soon! | -| Dynamic Programming | [Abbreviation](https://www.hackerrank.com/challenges/abbr) | Medium | Coming Soon! | -| Dynamic Programming | [The Maximum Subarray](https://www.hackerrank.com/challenges/maxsubarray) | Medium | Coming Soon! | -| Dynamic Programming | [Fair Cut](https://www.hackerrank.com/challenges/fair-cut) | Medium | Coming Soon! | -| Dynamic Programming | [HackerRank City](https://www.hackerrank.com/challenges/hr-city) | Medium | Coming Soon! | -| Dynamic Programming | [Summing Pieces](https://www.hackerrank.com/challenges/summing-pieces) | Medium | Coming Soon! | -| Dynamic Programming | [Mr K marsh](https://www.hackerrank.com/challenges/mr-k-marsh) | Medium | Coming Soon! | -| Dynamic Programming | [Substring Diff](https://www.hackerrank.com/challenges/substring-diff) | Medium | Coming Soon! | -| Dynamic Programming | [Xor and Sum](https://www.hackerrank.com/challenges/xor-and-sum) | Medium | Coming Soon! | -| Dynamic Programming | [Lego Blocks](https://www.hackerrank.com/challenges/lego-blocks) | Medium | Coming Soon! | -| Dynamic Programming | [Brick Tiling](https://www.hackerrank.com/challenges/brick-tiling) | Hard | Coming Soon! | -| Dynamic Programming | [Alien Languages](https://www.hackerrank.com/challenges/alien-languages) | Hard | Coming Soon! | -| Dynamic Programming | [Stock Maximize](https://www.hackerrank.com/challenges/stockmax) | Medium | Coming Soon! | -| Dynamic Programming | [Two Robots](https://www.hackerrank.com/challenges/two-robots) | Medium | Coming Soon! | -| Dynamic Programming | [Cut Tree](https://www.hackerrank.com/challenges/cuttree) | Medium | Coming Soon! | -| Dynamic Programming | [Wet Shark and Two Subsequences](https://www.hackerrank.com/challenges/wet-shark-and-two-subsequences) | Medium | Coming Soon! | -| Dynamic Programming | [Nikita and the Game](https://www.hackerrank.com/challenges/array-splitting) | Medium | Coming Soon! | -| Dynamic Programming | [Mandragora Forest](https://www.hackerrank.com/challenges/mandragora) | Medium | Coming Soon! | -| Dynamic Programming | [Red John is Back](https://www.hackerrank.com/challenges/red-john-is-back) | Medium | Coming Soon! | -| Dynamic Programming | [LCS Returns](https://www.hackerrank.com/challenges/tutzki-and-lcs) | Medium | Coming Soon! | -| Dynamic Programming | [Grid Walking](https://www.hackerrank.com/challenges/grid-walking) | Medium | Coming Soon! | -| Dynamic Programming | [Knapsack](https://www.hackerrank.com/challenges/unbounded-knapsack) | Medium | Coming Soon! | -| Dynamic Programming | [Bricks Game](https://www.hackerrank.com/challenges/play-game) | Medium | Coming Soon! | -| Dynamic Programming | [The Longest Increasing Subsequence](https://www.hackerrank.com/challenges/longest-increasing-subsequent) | Advanced | Coming Soon! | -| Dynamic Programming | [Coin on the Table](https://www.hackerrank.com/challenges/coin-on-the-table) | Medium | Coming Soon! | -| Dynamic Programming | [The Longest Common Subsequence](https://www.hackerrank.com/challenges/dynamic-programming-classics-the-longest-common-subsequence) | Medium | Coming Soon! | -| Dynamic Programming | [Play with words](https://www.hackerrank.com/challenges/strplay) | Medium | Coming Soon! | -| Dynamic Programming | [Black and White Tree](https://www.hackerrank.com/challenges/black-n-white-tree-1) | Hard | Coming Soon! | -| Dynamic Programming | [Counting Special Sub-Cubes](https://www.hackerrank.com/challenges/counting-special-sub-cubes) | Medium | Coming Soon! | -| Dynamic Programming | [Interval Selection](https://www.hackerrank.com/challenges/interval-selection) | Medium | Coming Soon! | -| Dynamic Programming | [String Reduction](https://www.hackerrank.com/challenges/string-reduction) | Hard | Coming Soon! | -| Dynamic Programming | [Far Vertices](https://www.hackerrank.com/challenges/far-vertices) | Hard | Coming Soon! | -| Dynamic Programming | [Superman Celebrates Diwali](https://www.hackerrank.com/challenges/superman-celebrates-diwali) | Hard | Coming Soon! | -| Dynamic Programming | [Hexagonal Grid](https://www.hackerrank.com/challenges/hexagonal-grid) | Medium | Coming Soon! | -| Dynamic Programming | [Queens on Board](https://www.hackerrank.com/challenges/queens-on-board) | Hard | Coming Soon! | -| Dynamic Programming | [Shashank and the Palindromic Strings](https://www.hackerrank.com/challenges/shashank-and-palindromic-strings) | Advanced | Coming Soon! | -| Dynamic Programming | [Points in a Plane](https://www.hackerrank.com/challenges/points-in-a-plane) | Advanced | Coming Soon! | -| Dynamic Programming | [The Indian Job](https://www.hackerrank.com/challenges/the-indian-job) | Medium | Coming Soon! | -| Dynamic Programming | [Requirement](https://www.hackerrank.com/challenges/requirement) | Advanced | Coming Soon! | -| Dynamic Programming | [A Super Hero](https://www.hackerrank.com/challenges/a-super-hero) | Hard | Coming Soon! | -| Dynamic Programming | [Clues on a Binary Path](https://www.hackerrank.com/challenges/clues-on-a-binary-path) | Hard | Coming Soon! | -| Dynamic Programming | [Road Maintenance](https://www.hackerrank.com/challenges/road-maintenance) | Hard | Coming Soon! | -| Dynamic Programming | [Billboards](https://www.hackerrank.com/challenges/billboards) | Advanced | Coming Soon! | -| Dynamic Programming | [Beautiful Strings](https://www.hackerrank.com/challenges/beautiful-string) | Hard | Coming Soon! | -| Dynamic Programming | [Covering the stains](https://www.hackerrank.com/challenges/covering-the-stains) | Hard | Coming Soon! | -| Dynamic Programming | [Fairy Chess](https://www.hackerrank.com/challenges/fairy-chess) | Advanced | Coming Soon! | -| Dynamic Programming | [Travel around the world](https://www.hackerrank.com/challenges/travel-around-the-world) | Medium | Coming Soon! | -| Dynamic Programming | [New Year Present](https://www.hackerrank.com/challenges/newyear-present) | Hard | Coming Soon! | -| Dynamic Programming | [Longest Palindromic Subsequence](https://www.hackerrank.com/challenges/longest-palindromic-subsequence) | Hard | Coming Soon! | -| Dynamic Programming | [Candles Counting](https://www.hackerrank.com/challenges/candles-2) | Medium | Coming Soon! | -| Dynamic Programming | [Hyper Strings](https://www.hackerrank.com/challenges/hyper-strings) | Advanced | Coming Soon! | -| Dynamic Programming | [Swap Permutation](https://www.hackerrank.com/challenges/swappermutation) | Medium | Coming Soon! | -| Dynamic Programming | [Extremum Permutations](https://www.hackerrank.com/challenges/extremum-permutations) | Medium | Coming Soon! | -| Dynamic Programming | [Square Subsequences](https://www.hackerrank.com/challenges/square-subsequences) | Hard | Coming Soon! | -| Dynamic Programming | [Dorsey Thief](https://www.hackerrank.com/challenges/dorsey-thief) | Advanced | Coming Soon! | -| Dynamic Programming | [Mining](https://www.hackerrank.com/challenges/mining) | Advanced | Coming Soon! | -| Dynamic Programming | [Police Operation](https://www.hackerrank.com/challenges/police-operation) | Hard | Coming Soon! | -| Dynamic Programming | [Zurikela's Graph](https://www.hackerrank.com/challenges/zurikela) | Hard | Coming Soon! | -| Dynamic Programming | [Modify The Sequence](https://www.hackerrank.com/challenges/modify-the-sequence) | Advanced | Coming Soon! | -| Dynamic Programming | [Longest Mod Path](https://www.hackerrank.com/challenges/longest-mod-path) | Hard | Coming Soon! | -| Dynamic Programming | [P-sequences](https://www.hackerrank.com/challenges/p-sequences) | Hard | Coming Soon! | -| Dynamic Programming | [Robot](https://www.hackerrank.com/challenges/robot) | Advanced | Coming Soon! | -| Dynamic Programming | [Lucky Numbers](https://www.hackerrank.com/challenges/lucky-numbers) | Expert | Coming Soon! | -| Dynamic Programming | [Unfair Game](https://www.hackerrank.com/challenges/unfair-game) | Advanced | Coming Soon! | -| Dynamic Programming | [Oil Well](https://www.hackerrank.com/challenges/oil-well) | Hard | Coming Soon! | -| Dynamic Programming | [Find the Seed](https://www.hackerrank.com/challenges/find-the-seed) | Advanced | Coming Soon! | -| Dynamic Programming | [The Blacklist](https://www.hackerrank.com/challenges/the-blacklist) | Advanced | Coming Soon! | -| Dynamic Programming | [Tree Pruning](https://www.hackerrank.com/challenges/tree-pruning) | Advanced | Coming Soon! | -| Dynamic Programming | [Ones and Twos](https://www.hackerrank.com/challenges/ones-and-twos) | Hard | Coming Soon! | -| Dynamic Programming | [Count Scorecards](https://www.hackerrank.com/challenges/count-scorecards) | Expert | Coming Soon! | -| Dynamic Programming | [Vim War](https://www.hackerrank.com/challenges/vim-war) | Advanced | Coming Soon! | -| Dynamic Programming | [Best spot](https://www.hackerrank.com/challenges/best-spot) | Advanced | Coming Soon! | -| Dynamic Programming | [Divisible Numbers](https://www.hackerrank.com/challenges/divisible-numbers) | Expert | Coming Soon! | -| Dynamic Programming | [Unique Divide And Conquer](https://www.hackerrank.com/challenges/unique-divide-and-conquer) | Advanced | Coming Soon! | -| Dynamic Programming | [King and Four Sons](https://www.hackerrank.com/challenges/happy-king) | Expert | Coming Soon! | -| Dynamic Programming | [Dortmund Dilemma](https://www.hackerrank.com/challenges/dortmund-dilemma) | Advanced | Coming Soon! | -| Dynamic Programming | [Super Kth LIS](https://www.hackerrank.com/challenges/super-kth-lis) | Advanced | Coming Soon! | -| Dynamic Programming | [Counting the Ways](https://www.hackerrank.com/challenges/count-ways-1) | Expert | Coming Soon! | -| Dynamic Programming | [Hard Disk Drives](https://www.hackerrank.com/challenges/hard-drive-disks) | Expert | Coming Soon! | -| Dynamic Programming | [Separate the chocolate](https://www.hackerrank.com/challenges/separate-the-chocolate) | Expert | Coming Soon! | -| Constructive Algorithms | [Flipping the Matrix](https://www.hackerrank.com/challenges/flipping-the-matrix) | Medium | Coming Soon! | -| Constructive Algorithms | [New Year Chaos](https://www.hackerrank.com/challenges/new-year-chaos) | Medium | Coming Soon! | -| Constructive Algorithms | [Bonetrousle](https://www.hackerrank.com/challenges/bonetrousle) | Medium | Coming Soon! | -| Constructive Algorithms | [Yet Another KMP Problem](https://www.hackerrank.com/challenges/kmp-problem) | Hard | Coming Soon! | -| Constructive Algorithms | [Beautiful 3 Set](https://www.hackerrank.com/challenges/beautiful-3-set) | Hard | Coming Soon! | -| Constructive Algorithms | [Inverse RMQ](https://www.hackerrank.com/challenges/inverse-rmq) | Hard | Coming Soon! | -| Constructive Algorithms | [Lovely Triplets](https://www.hackerrank.com/challenges/lovely-triplets) | Advanced | Coming Soon! | -| Constructive Algorithms | [Array Construction](https://www.hackerrank.com/challenges/array-construction) | Advanced | Coming Soon! | | Bit Manipulation | [Lonely Integer](https://www.hackerrank.com/challenges/lonely-integer) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Bit%20Manipulation/Lonely%20Integer/Solution.java) | -| Bit Manipulation | [Maximizing XOR](https://www.hackerrank.com/challenges/maximizing-xor) | Easy | Coming Soon! | -| Bit Manipulation | [Counter game](https://www.hackerrank.com/challenges/counter-game) | Medium | Coming Soon! | -| Bit Manipulation | [Xor-sequence](https://www.hackerrank.com/challenges/xor-se) | Medium | Coming Soon! | -| Bit Manipulation | [Sum vs XOR](https://www.hackerrank.com/challenges/sum-vs-xor) | Easy | Coming Soon! | -| Bit Manipulation | [Flipping bits](https://www.hackerrank.com/challenges/flipping-bits) | Easy | Coming Soon! | -| Bit Manipulation | [Yet Another Minimax Problem](https://www.hackerrank.com/challenges/yet-another-minimax-problem) | Medium | Coming Soon! | -| Bit Manipulation | [Sansa and XOR](https://www.hackerrank.com/challenges/sansa-and-xor) | Medium | Coming Soon! | -| Bit Manipulation | [AND Product](https://www.hackerrank.com/challenges/and-product) | Medium | Coming Soon! | -| Bit Manipulation | [Xoring Ninja](https://www.hackerrank.com/challenges/xoring-ninja) | Hard | Coming Soon! | -| Bit Manipulation | [Cipher](https://www.hackerrank.com/challenges/cipher) | Medium | Coming Soon! | -| Bit Manipulation | [XOR Matrix](https://www.hackerrank.com/challenges/xor-matrix) | Hard | Coming Soon! | -| Bit Manipulation | [What's Next](https://www.hackerrank.com/challenges/whats-next) | Medium | Coming Soon! | -| Bit Manipulation | [String Transmission](https://www.hackerrank.com/challenges/string-transmission) | Hard | Coming Soon! | -| Bit Manipulation | [A or B](https://www.hackerrank.com/challenges/aorb) | Medium | Coming Soon! | -| Bit Manipulation | [Manipulative Numbers](https://www.hackerrank.com/challenges/manipulative-numbers) | Hard | Coming Soon! | -| Bit Manipulation | [Stone game](https://www.hackerrank.com/challenges/stonegame) | Hard | Coming Soon! | -| Bit Manipulation | [2's complement](https://www.hackerrank.com/challenges/2s-complement) | Advanced | Coming Soon! | -| Bit Manipulation | [Changing Bits](https://www.hackerrank.com/challenges/changing-bits) | Advanced | Coming Soon! | -| Bit Manipulation | [XOR key](https://www.hackerrank.com/challenges/xor-key) | Advanced | Coming Soon! | -| Bit Manipulation | [Maximizing the Function](https://www.hackerrank.com/challenges/maximizing-the-function) | Hard | Coming Soon! | -| Bit Manipulation | [XOR Subsequences](https://www.hackerrank.com/challenges/xor-subsequence) | Advanced | Coming Soon! | -| Bit Manipulation | [Iterate It](https://www.hackerrank.com/challenges/iterate-it) | Expert | Coming Soon! | -| Bit Manipulation | [Hamming Distance](https://www.hackerrank.com/challenges/hamming-distance) | Expert | Coming Soon! | -| Bit Manipulation | [Mixing proteins](https://www.hackerrank.com/challenges/pmix) | Hard | Coming Soon! | -| Recursion | [Simplified Chess Engine](https://www.hackerrank.com/challenges/simplified-chess-engine) | Medium | Coming Soon! | -| Recursion | [Repetitive K-Sums](https://www.hackerrank.com/challenges/repeat-k-sums) | Advanced | Coming Soon! | -| Game Theory | [Game of Stones](https://www.hackerrank.com/challenges/game-of-stones-1) | Easy | Coming Soon! | -| Game Theory | [Tower Breakers](https://www.hackerrank.com/challenges/tower-breakers-1) | Easy | Coming Soon! | -| Game Theory | [A Chessboard Game](https://www.hackerrank.com/challenges/a-chessboard-game-1) | Easy | Coming Soon! | -| Game Theory | [Introduction to Nim Game](https://www.hackerrank.com/challenges/nim-game-1) | Easy | Coming Soon! | -| Game Theory | [Misere Nim](https://www.hackerrank.com/challenges/misere-nim-1) | Easy | Coming Soon! | -| Game Theory | [Nimble Game](https://www.hackerrank.com/challenges/nimble-game-1) | Easy | Coming Soon! | -| Game Theory | [Poker Nim](https://www.hackerrank.com/challenges/poker-nim-1) | Easy | Coming Soon! | -| Game Theory | [Tower Breakers, Revisited!](https://www.hackerrank.com/challenges/tower-breakers-revisited-1) | Medium | Coming Soon! | -| Game Theory | [Tower Breakers, Again!](https://www.hackerrank.com/challenges/tower-breakers-again-1) | Medium | Coming Soon! | -| Game Theory | [Chessboard Game, Again!](https://www.hackerrank.com/challenges/chessboard-game-again-1) | Medium | Coming Soon! | -| Game Theory | [Digits Square Board](https://www.hackerrank.com/challenges/digits-square-board-1) | Medium | Coming Soon! | -| Game Theory | [Fun Game](https://www.hackerrank.com/challenges/fun-game-1) | Medium | Coming Soon! | -| Game Theory | [Stone Division](https://www.hackerrank.com/challenges/stone-division) | Hard | Coming Soon! | -| Game Theory | [Chocolate in Box](https://www.hackerrank.com/challenges/chocolate-in-box) | Medium | Coming Soon! | -| Game Theory | [Kitty and Katty](https://www.hackerrank.com/challenges/kitty-and-katty) | Medium | Coming Soon! | -| Game Theory | [Powers Game](https://www.hackerrank.com/challenges/powers-game-1) | Medium | Coming Soon! | -| Game Theory | [Deforestation](https://www.hackerrank.com/challenges/deforestation-1) | Medium | Coming Soon! | -| Game Theory | [Bob and Ben](https://www.hackerrank.com/challenges/bob-and-ben) | Medium | Coming Soon! | -| Game Theory | [Tower Breakers - The Final Battle](https://www.hackerrank.com/challenges/tower-breakers-the-final-battle-1) | Medium | Coming Soon! | -| Game Theory | [Simple Game](https://www.hackerrank.com/challenges/simple-game) | Hard | Coming Soon! | -| Game Theory | [Permutation game](https://www.hackerrank.com/challenges/permutation-game) | Medium | Coming Soon! | -| Game Theory | [Move the Coins](https://www.hackerrank.com/challenges/move-the-coins) | Hard | Coming Soon! | -| Game Theory | [Play on benders](https://www.hackerrank.com/challenges/benders-play) | Medium | Coming Soon! | -| Game Theory | [New Year Game](https://www.hackerrank.com/challenges/newyear-game) | Medium | Coming Soon! | -| Game Theory | [Stone Piles](https://www.hackerrank.com/challenges/stone-piles) | Hard | Coming Soon! | -| Game Theory | [Chocolate Game](https://www.hackerrank.com/challenges/chocolate-game) | Hard | Coming Soon! | -| Game Theory | [Manasa and Prime game](https://www.hackerrank.com/challenges/manasa-and-prime-game) | Hard | Coming Soon! | -| Game Theory | [Vertical Rooks](https://www.hackerrank.com/challenges/vertical-rooks) | Medium | Coming Soon! | -| Game Theory | [A stones game](https://www.hackerrank.com/challenges/half) | Medium | Coming Soon! | -| NP Complete | [Walking the Approximate Longest Path](https://www.hackerrank.com/challenges/walking-the-approximate-longest-path) | Hard | Coming Soon! | -| NP Complete | [Spies, Revisited](https://www.hackerrank.com/challenges/spies-revised) | Expert | Coming Soon! | -| NP Complete | [TBS Problem](https://www.hackerrank.com/challenges/tbsp) | Expert | Coming Soon! | +| Bit Manipulation | [Bit Manipulation: Lonely Integer](https://www.hackerrank.com/challenges/lonely-integer) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Bit%20Manipulation/Bit%20Manipulation%20-%20Lonely%20Integer/Solution.java) | +| Bit Manipulation | [Maximizing XOR](https://www.hackerrank.com/challenges/maximizing-xor) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Bit%20Manipulation/Maximizing%20XOR/Solution.java) | +| Bit Manipulation | [Counter game](https://www.hackerrank.com/challenges/counter-game) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Bit%20Manipulation/Counter%20game/Solution.java) | +| Bit Manipulation | [Sum vs XOR](https://www.hackerrank.com/challenges/sum-vs-xor) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Bit%20Manipulation/Sum%20vs%20XOR/Solution.java) | +| Bit Manipulation | [Sansa and XOR](https://www.hackerrank.com/challenges/sansa-and-xor) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Bit%20Manipulation/Sansa%20and%20XOR/Solution.java) | diff --git a/Algorithms/Strings/Alternating Characters/Solution.java b/Algorithms/Strings/Alternating Characters/Solution.java new file mode 100644 index 0000000..3fa98a5 --- /dev/null +++ b/Algorithms/Strings/Alternating Characters/Solution.java @@ -0,0 +1,29 @@ +// Author: Rodney Shaghoulian +// Github: github.com/rshaghoulian +// HackerRank: hackerrank.com/rshaghoulian + +import java.util.Scanner; + +// Each time we have 2 consecutive characters that are the same, we can delete 1 of them + +public class Solution { + public static void main(String[] args) { + Scanner scan = new Scanner(System.in); + int T = scan.nextInt(); + while (T-- > 0) { + String str = scan.next(); + System.out.println(minimumDeletions(str)); + } + scan.close(); + } + + private static int minimumDeletions(String str) { + int deletions = 0; + for (int i = 1; i < str.length(); i++) { + if (str.charAt(i) == str.charAt(i-1)) { + deletions++; + } + } + return deletions; + } +} diff --git a/Algorithms/Strings/Gemstones/Solution.java b/Algorithms/Strings/Gemstones/Solution.java new file mode 100644 index 0000000..d30f025 --- /dev/null +++ b/Algorithms/Strings/Gemstones/Solution.java @@ -0,0 +1,32 @@ +// Author: Rodney Shaghoulian +// Github: github.com/rshaghoulian +// HackerRank: hackerrank.com/rshaghoulian + +import java.util.Scanner; +import java.util.BitSet; + +public class Solution { + private static final int NUM_ELEMENTS = 26; + + public static void main(String [] args) { + Scanner scan = new Scanner(System.in); + int N = scan.nextInt(); + + /* Initialize BitSet */ + BitSet bitset = new BitSet(NUM_ELEMENTS); + bitset.set(0, NUM_ELEMENTS); + + /* Create a BitSet for each rock. "AND" it with our original BitSet */ + for (int r = 0; r < N; r++) { + String rock = scan.next(); + BitSet currBitSet = new BitSet(NUM_ELEMENTS); + for (int i = 0; i < rock.length(); i++) { + currBitSet.set(rock.charAt(i) - 'a'); + } + bitset.and(currBitSet); + } + + scan.close(); + System.out.println(bitset.cardinality()); + } +} diff --git a/Algorithms/Strings/Mars Exploration/Solution.java b/Algorithms/Strings/Mars Exploration/Solution.java new file mode 100644 index 0000000..22144be --- /dev/null +++ b/Algorithms/Strings/Mars Exploration/Solution.java @@ -0,0 +1,25 @@ +// Author: Rodney Shaghoulian +// Github: github.com/rshaghoulian +// HackerRank: hackerrank.com/rshaghoulian + +import java.util.Scanner; + +public class Solution { + public static void main(String [] args) { + Scanner scan = new Scanner(System.in); + String str = scan.next(); + scan.close(); + System.out.println(alteredLetters(str)); + } + + private static int alteredLetters(String message) { + String sos = "SOS"; + int count = 0; + for (int i = 0; i < message.length(); i++) { + if (message.charAt(i) != sos.charAt(i % 3)) { + count++; + } + } + return count; + } +} diff --git a/Algorithms/Strings/The Love-Letter Mystery/Solution.java b/Algorithms/Strings/The Love-Letter Mystery/Solution.java new file mode 100644 index 0000000..b1499f7 --- /dev/null +++ b/Algorithms/Strings/The Love-Letter Mystery/Solution.java @@ -0,0 +1,29 @@ +// Author: Rodney Shaghoulian +// Github: github.com/rshaghoulian +// HackerRank: hackerrank.com/rshaghoulian + +import java.util.Scanner; + +// We compare ASCII values for pairs of characters. The 1st pair we consider is the 2 +// characters at opposite ends of the String. We then move inwards until we consider +// all palindromic pairs. + +public class Solution { + public static void main(String [] args) { + Scanner scan = new Scanner(System.in); + int T = scan.nextInt(); + while (T-- > 0) { + String str = scan.next(); + System.out.println(minimumOperations(str)); + } + scan.close(); + } + + private static int minimumOperations(String str) { + int count = 0; + for (int i = 0; i < str.length() / 2; i++) { + count += Math.abs(str.charAt(i) - str.charAt(str.length() - 1 - i)); + } + return count; + } +} diff --git a/Cracking the Coding Interview/README.md b/Cracking the Coding Interview/README.md index 0f4f31f..091b350 100644 --- a/Cracking the Coding Interview/README.md +++ b/Cracking the Coding Interview/README.md @@ -1,24 +1,24 @@ # Cracking the Coding Interview -| Topic | Challenge | Difficulty | Solution | -|:---------------------:|:--------------------------------------------------------------------------------------------------------:|:----------:|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| -| Data Structures | [Arrays: Left Rotation](https://www.hackerrank.com/challenges/ctci-array-left-rotation) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Arrays%20-%20Left%20Rotation/Solution.java) | -| Data Structures | [Strings: Making Anagrams](https://www.hackerrank.com/challenges/ctci-making-anagrams) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Strings%20-%20Making%20Anagrams/Solution.java) | -| Data Structures | [Hash Tables: Ransom Note](https://www.hackerrank.com/challenges/ctci-ransom-note) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Hash%20Tables%20-%20Ransom%20Note/Solution.java) | -| Data Structures | [Linked Lists: Detect a Cycle](https://www.hackerrank.com/challenges/ctci-linked-list-cycle) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Linked%20Lists%20-%20Detect%20a%20Cycle/Solution.java) | -| Data Structures | [Stacks: Balanced Brackets](https://www.hackerrank.com/challenges/ctci-balanced-brackets) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Stacks%20-%20Balanced%20Brackets/Solution.java) | -| Data Structures | [Queues: A Tale of Two Stacks](https://www.hackerrank.com/challenges/ctci-queue-using-two-stacks) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Queue%20-%20A%20Tale%20of%20Two%20Stacks/Solution.java) | -| Data Structures | [Trees: Is This a Binary Search Tree?](https://www.hackerrank.com/challenges/ctci-is-binary-search-tree) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Trees%20-%20Is%20This%20a%20Binary%20Search%20Tree/Solution.java) | -| Data Structures | [Heaps: Find the Running Median](https://www.hackerrank.com/challenges/ctci-find-the-running-median) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Heaps%20-%20Find%20the%20Running%20Median/Solution.java) | -| Data Structures | [Tries: Contacts](https://www.hackerrank.com/challenges/ctci-contacts) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Tries%20-%20Contacts/Solution.java) | -| Algorithms | [Sorting: Bubble Sort](https://www.hackerrank.com/challenges/ctci-bubble-sort) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/Sorting%20-%20Bubble%20Sort/Solution.java) | -| Algorithms | [Sorting: Comparator](https://www.hackerrank.com/challenges/ctci-comparator-sorting) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/Sorting%20-%20Comparator/Solution.java) | -| Algorithms | [Merge Sort: Counting Inversions](https://www.hackerrank.com/challenges/ctci-merge-sort) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/Merge%20Sort%20-%20Counting%20Inversions/Solution.java) | -| Algorithms | [Binary Search: Ice Cream Parlor](https://www.hackerrank.com/challenges/ctci-ice-cream-parlor) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/Binary%20Search%20-%20Ice%20Cream%20Parlor/Solution.java) | -| Algorithms | [DFS: Connected Cell in a Grid](https://www.hackerrank.com/challenges/ctci-connected-cell-in-a-grid) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/DFS%20-%20Connected%20Cell%20in%20a%20Grid/Solution.java) | -| Algorithms | [BFS: Shortest Reach in a Graph](https://www.hackerrank.com/challenges/ctci-bfs-shortest-reach) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/BFS%20-%20Shortest%20Reach%20in%20a%20Graph/Solution.java) | -| Techniques / Concepts | [Time Complexity: Primality](https://www.hackerrank.com/challenges/ctci-big-o) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/Time%20Complexity%20-%20Primality/Solution.java) | -| Techniques / Concepts | [Recrusion: Fibonacci Numbers](https://www.hackerrank.com/challenges/ctci-fibonacci-numbers) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/Recursion%20-%20Fibonacci%20Numbers/Solution.java) | -| Techniques / Concepts | [Recursion: Davis' Staircase](https://www.hackerrank.com/challenges/ctci-recursive-staircase) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/Recursion%20-%20Davis'%20Staircase/Solution.java) | -| Techniques / Concepts | [DP: Coin Change](https://www.hackerrank.com/challenges/ctci-coin-change) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/DP%20-%20Coin%20Change/Solution.java) | -| Techniques / Concepts | [Bit Manipulation: Lonely Integer](https://www.hackerrank.com/challenges/ctci-lonely-integer) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/Bit%20Manipulation%20-%20Lonely%20Integer/Solution.java) | +| Topic | Challenge | Points | Solution | +|:---------------------:|:--------------------------------------------------------------------------------------------------------:|:------:|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| +| Data Structures | [Arrays: Left Rotation](https://www.hackerrank.com/challenges/ctci-array-left-rotation) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Arrays%20-%20Left%20Rotation/Solution.java) | +| Data Structures | [Strings: Making Anagrams](https://www.hackerrank.com/challenges/ctci-making-anagrams) | 25 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Strings%20-%20Making%20Anagrams/Solution.java) | +| Data Structures | [Hash Tables: Ransom Note](https://www.hackerrank.com/challenges/ctci-ransom-note) | 25 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Hash%20Tables%20-%20Ransom%20Note/Solution.java) | +| Data Structures | [Linked Lists: Detect a Cycle](https://www.hackerrank.com/challenges/ctci-linked-list-cycle) | 25 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Linked%20Lists%20-%20Detect%20a%20Cycle/Solution.java) | +| Data Structures | [Stacks: Balanced Brackets](https://www.hackerrank.com/challenges/ctci-balanced-brackets) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Stacks%20-%20Balanced%20Brackets/Solution.java) | +| Data Structures | [Queues: A Tale of Two Stacks](https://www.hackerrank.com/challenges/ctci-queue-using-two-stacks) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Queue%20-%20A%20Tale%20of%20Two%20Stacks/Solution.java) | +| Data Structures | [Trees: Is This a Binary Search Tree?](https://www.hackerrank.com/challenges/ctci-is-binary-search-tree) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Trees%20-%20Is%20This%20a%20Binary%20Search%20Tree/Solution.java) | +| Data Structures | [Heaps: Find the Running Median](https://www.hackerrank.com/challenges/ctci-find-the-running-median) | 50 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Heaps%20-%20Find%20the%20Running%20Median/Solution.java) | +| Data Structures | [Tries: Contacts](https://www.hackerrank.com/challenges/ctci-contacts) | 50 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Tries%20-%20Contacts/Solution.java) | +| Algorithms | [Sorting: Bubble Sort](https://www.hackerrank.com/challenges/ctci-bubble-sort) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/Sorting%20-%20Bubble%20Sort/Solution.java) | +| Algorithms | [Sorting: Comparator](https://www.hackerrank.com/challenges/ctci-comparator-sorting) | 35 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/Sorting%20-%20Comparator/Solution.java) | +| Algorithms | [Merge Sort: Counting Inversions](https://www.hackerrank.com/challenges/ctci-merge-sort) | 35 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/Merge%20Sort%20-%20Counting%20Inversions/Solution.java) | +| Algorithms | [Binary Search: Ice Cream Parlor](https://www.hackerrank.com/challenges/ctci-ice-cream-parlor) | 45 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/Binary%20Search%20-%20Ice%20Cream%20Parlor/Solution.java) | +| Algorithms | [DFS: Connected Cell in a Grid](https://www.hackerrank.com/challenges/ctci-connected-cell-in-a-grid) | 45 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/DFS%20-%20Connected%20Cell%20in%20a%20Grid/Solution.java) | +| Algorithms | [BFS: Shortest Reach in a Graph](https://www.hackerrank.com/challenges/ctci-bfs-shortest-reach) | 45 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/BFS%20-%20Shortest%20Reach%20in%20a%20Graph/Solution.java) | +| Techniques / Concepts | [Time Complexity: Primality](https://www.hackerrank.com/challenges/ctci-big-o) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/Time%20Complexity%20-%20Primality/Solution.java) | +| Techniques / Concepts | [Recrusion: Fibonacci Numbers](https://www.hackerrank.com/challenges/ctci-fibonacci-numbers) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/Recursion%20-%20Fibonacci%20Numbers/Solution.java) | +| Techniques / Concepts | [Recursion: Davis' Staircase](https://www.hackerrank.com/challenges/ctci-recursive-staircase) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/Recursion%20-%20Davis'%20Staircase/Solution.java) | +| Techniques / Concepts | [DP: Coin Change](https://www.hackerrank.com/challenges/ctci-coin-change) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/DP%20-%20Coin%20Change/Solution.java) | +| Techniques / Concepts | [Bit Manipulation: Lonely Integer](https://www.hackerrank.com/challenges/ctci-lonely-integer) | 60 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/Bit%20Manipulation%20-%20Lonely%20Integer/Solution.java) | diff --git a/Data Structures/README.md b/Data Structures/README.md index 85a753f..3202b39 100644 --- a/Data Structures/README.md +++ b/Data Structures/README.md @@ -35,77 +35,11 @@ | Trees | [Swap Nodes [Algo]](https://www.hackerrank.com/challenges/swap-nodes-algo) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Trees/Swap%20Nodes%20%5BAlgo%5D/Solution.java) | | Trees | [Is This a Binary Search Tree?](https://www.hackerrank.com/challenges/is-binary-search-tree) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Trees/Is%20This%20a%20Binary%20Search%20Tree/Solution.java) | | Trees | [Square-Ten Tree](https://www.hackerrank.com/challenges/square-ten-tree) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Trees/Square-Ten%20Tree/Solution.java) | -| Trees | [Balanced Forest](https://www.hackerrank.com/challenges/balanced-forest) | Hard | Coming Soon! | -| Balanced Trees | [Self Balancing Tree](https://www.hackerrank.com/challenges/self-balancing-tree) | Medium | Coming Soon! | -| Balanced Trees | [Array and simple queries](https://www.hackerrank.com/challenges/array-and-simple-queries) | Hard | Coming Soon! | -| Balanced Trees | [Median Updates](https://www.hackerrank.com/challenges/median) | Hard | Coming Soon! | | Stacks | [Maximum Element](https://www.hackerrank.com/challenges/maximum-element) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Stacks/Maximum%20Element/Solution.java) | | Stacks | [Balanced Brackets](https://www.hackerrank.com/challenges/balanced-brackets) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Stacks/Balanced%20Brackets/Solution.java) | -| Stacks | [Largest Rectangle](https://www.hackerrank.com/challenges/largest-rectangle) | Hard | Coming Soon! | -| Stacks | [Simple Text Editor](https://www.hackerrank.com/challenges/simple-text-editor) | Medium | Coming Soon! | -| Stacks | [Equal Stacks](https://www.hackerrank.com/challenges/equal-stacks) | Easy | Coming Soon! | -| Stacks | [Poisonous Plants](https://www.hackerrank.com/challenges/poisonous-plants) | Hard | Coming Soon! | -| Stacks | [AND xor OR](https://www.hackerrank.com/challenges/and-xor-or) | Hard | Coming Soon! | -| Stacks | [Waiter](https://www.hackerrank.com/challenges/waiter) | Medium | Coming Soon! | | Queues | [Queue using Two Stacks](https://www.hackerrank.com/challenges/queue-using-two-stacks) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Queues/Queue%20using%20Two%20Stacks/Solution.java) | -| Queues | [Castle on the Grid](https://www.hackerrank.com/challenges/castle-on-the-grid) | Medium | Coming Soon! | -| Queues | [Down to Zero II](https://www.hackerrank.com/challenges/down-to-zero-ii) | Medium | Coming Soon! | -| Queues | [Truck Tour](https://www.hackerrank.com/challenges/truck-tour) | Hard | Coming Soon! | -| Queues | [Queries with Fixed Length](https://www.hackerrank.com/challenges/queries-with-fixed-length) | Hard | Coming Soon! | -| Heap | [QHEAP1](https://www.hackerrank.com/challenges/qheap1) | Easy | Coming Soon! | -| Heap | [Jesse and Cookies](https://www.hackerrank.com/challenges/jesse-and-cookies) | Easy | Coming Soon! | | Heap | [Find the Running Median](https://www.hackerrank.com/challenges/find-the-running-median) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Heap/Find%20the%20Running%20Median/Solution.java) | -| Heap | [Minimum Average Waiting Time](https://www.hackerrank.com/challenges/minimum-average-waiting-time) | Hard | Coming Soon! | -| Disjoint Set | [Merging Communities](https://www.hackerrank.com/challenges/merging-communities) | Hard | Coming Soon! | -| Disjoint Set | [Components in a graph](https://www.hackerrank.com/challenges/components-in-graph) | Medium | Coming Soon! | -| Disjoint Set | [Kundu and Tree](https://www.hackerrank.com/challenges/kundu-and-tree) | Hard | Coming Soon! | -| Disjoint Set | [Super Maximum Cost Queries](https://www.hackerrank.com/challenges/maximum-cost-queries) | Hard | Coming Soon! | | Multiple Choice | [Data Structures MCQ 1](https://www.hackerrank.com/challenges/how-well-do-you-know-trees) | Hard | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Multiple%20Choice/Data%20Structures%20MCQ%201/Solution.txt) | | Multiple Choice | [Data Structures MCQ 2](https://www.hackerrank.com/challenges/are-you-an-expert-on-data-structures) | Hard | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Multiple%20Choice/Data%20Structures%20MCQ%202/Solution.txt) | | Multiple Choice | [Data Structures MCQ 3](https://www.hackerrank.com/challenges/are-you-an-expert-on-data-structures-1) | Hard | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Multiple%20Choice/Data%20Structures%20MCQ%203/Solution.txt) | | Trie | [Contacts](https://www.hackerrank.com/challenges/contacts) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Trie/Contacts/Solution.java) | -| Trie | [No Prefix Set](https://www.hackerrank.com/challenges/no-prefix-set) | Hard | Coming Soon! | -| Advanced | [Kindergarten Adventures](https://www.hackerrank.com/challenges/kindergarten-adventures) | Medium | Coming Soon! | -| Advanced | [Cube Summation](https://www.hackerrank.com/challenges/cube-summation) | Hard | Coming Soon! | -| Advanced | [Mr. X and His Shots](https://www.hackerrank.com/challenges/x-and-his-shots) | Medium | Coming Soon! | -| Advanced | [Direct Connections](https://www.hackerrank.com/challenges/direct-connections) | Hard | Coming Soon! | -| Advanced | [Subsequence Weighting](https://www.hackerrank.com/challenges/subsequence-weighting) | Advanced | Coming Soon! | -| Advanced | [Jim and the Skyscrapers](https://www.hackerrank.com/challenges/jim-and-the-skyscrapers) | Medium | Coming Soon! | -| Advanced | [Counting On a Tree](https://www.hackerrank.com/challenges/counting-on-a-tree) | Expert | Coming Soon! | -| Advanced | [Unique Colors](https://www.hackerrank.com/challenges/unique-colors) | Advanced | Coming Soon! | -| Advanced | [Self-Driving Bus](https://www.hackerrank.com/challenges/self-driving-bus) | Advanced | Coming Soon! | -| Advanced | [Fibonacci Numbers Tree](https://www.hackerrank.com/challenges/fibonacci-numbers-tree) | Expert | Coming Soon! | -| Advanced | [Functional Palindromes](https://www.hackerrank.com/challenges/functional-palindromes) | Advanced | Coming Soon! | -| Advanced | [Lazy White Falcon](https://www.hackerrank.com/challenges/lazy-white-falcon) | Hard | Coming Soon! | -| Advanced | [Ticket to Ride](https://www.hackerrank.com/challenges/ticket-to-ride) | Expert | Coming Soon! | -| Advanced | [Heavy Light White Falcon](https://www.hackerrank.com/challenges/heavy-light-white-falcon) | Hard | Coming Soon! | -| Advanced | [Sum of the Maximums](https://www.hackerrank.com/challenges/little-alexey-and-sum-of-maximums) | Advanced | Coming Soon! | -| Advanced | [Heavy Light 2 White Falcon](https://www.hackerrank.com/challenges/heavy-light-2-white-falcon) | Hard | Coming Soon! | -| Advanced | [Library Query](https://www.hackerrank.com/challenges/library-query) | Advanced | Coming Soon! | -| Advanced | [Starfleet](https://www.hackerrank.com/challenges/starfleet) | Advanced | Coming Soon! | -| Advanced | [Almost Equal - Advanced](https://www.hackerrank.com/challenges/almost-equal-advanced) | Expert | Coming Soon! | -| Advanced | [Almost sorted interval](https://www.hackerrank.com/challenges/almost-sorted-interval) | Expert | Coming Soon! | -| Advanced | [Burger Happiness](https://www.hackerrank.com/challenges/burger-happiness) | Hard | Coming Soon! | -| Advanced | [Roy and alpha-beta trees](https://www.hackerrank.com/challenges/roy-and-alpha-beta-trees) | Hard | Coming Soon! | -| Advanced | [Coloring Tree](https://www.hackerrank.com/challenges/coloring-tree) | Hard | Coming Soon! | -| Advanced | [Recalling Early Days GP with Trees](https://www.hackerrank.com/challenges/recalling-early-days-gp-with-trees) | Hard | Coming Soon! | -| Advanced | [Swaps and Sum](https://www.hackerrank.com/challenges/swaps-and-sum) | Advanced | Coming Soon! | -| Advanced | [Arithmetic Progressions](https://www.hackerrank.com/challenges/arithmetic-progressions) | Advanced | Coming Soon! | -| Advanced | [Coolguy and Two Subsequences](https://www.hackerrank.com/challenges/coolguy-and-two-subsequences) | Advanced | Coming Soon! | -| Advanced | [White Falcon And Tree](https://www.hackerrank.com/challenges/white-falcon-and-tree) | Hard | Coming Soon! | -| Advanced | [Subtrees And Paths](https://www.hackerrank.com/challenges/subtrees-and-paths) | Advanced | Coming Soon! | -| Advanced | [Triplets](https://www.hackerrank.com/challenges/triplets) | Advanced | Coming Soon! | -| Advanced | [Beautiful Segments](https://www.hackerrank.com/challenges/beautiful-segments) | Expert | Coming Soon! | -| Advanced | [Divisibility](https://www.hackerrank.com/challenges/ab0) | Expert | Coming Soon! | -| Advanced | [BST maintenance](https://www.hackerrank.com/challenges/bst-maintenance) | Advanced | Coming Soon! | -| Advanced | [Find Maximum Index Product](https://www.hackerrank.com/challenges/find-maximum-index-product) | Medium | Coming Soon! | -| Advanced | [Taxicab Driver's Problem](https://www.hackerrank.com/challenges/taxicab-drivers-problem) | Advanced | Coming Soon! | -| Advanced | [Jaggu Playing with Balloons](https://www.hackerrank.com/challenges/jagia-playing-with-numbers) | Advanced | Coming Soon! | -| Advanced | [Dynamic Summation](https://www.hackerrank.com/challenges/dynamic-summation) | Hard | Coming Soon! | -| Advanced | [Two Array Problem](https://www.hackerrank.com/challenges/weird-queries) | Hard | Coming Soon! | -| Advanced | [Rooted Tree](https://www.hackerrank.com/challenges/rooted-tree) | Hard | Coming Soon! | -| Advanced | [The crazy helix](https://www.hackerrank.com/challenges/helix) | Advanced | Coming Soon! | -| Advanced | [Network administration](https://www.hackerrank.com/challenges/net-admin) | Hard | Coming Soon! | -| Advanced | [Easy Addition](https://www.hackerrank.com/challenges/easy-addition) | Expert | Coming Soon! | -| Advanced | [Find the permutation](https://www.hackerrank.com/challenges/find-the-permutation) | Expert | Coming Soon! | -| Advanced | [Company Retreat](https://www.hackerrank.com/challenges/company-retreat) | Advanced | Coming Soon! | diff --git a/Java/Data Structures/Java Dequeue/Solution.java b/Java/Data Structures/Java Dequeue/Solution.java index 86d94e6..f99d740 100644 --- a/Java/Data Structures/Java Dequeue/Solution.java +++ b/Java/Data Structures/Java Dequeue/Solution.java @@ -3,16 +3,21 @@ // HackerRank: hackerrank.com/rshaghoulian import java.util.Scanner; -import java.util.Deque; import java.util.ArrayDeque; import java.util.HashMap; +// Why not use just a HashMap instead of both a HashMap and an ArrayDeque? +// Well, an ArrayDeque helps keep the ordering of elements. Although the +// elements are also in our HashMap, they is no ordering to the elements +// in the HashMap since it's just a set. + // Time Complexity: O(n) // Space Complexity: O(n) + public class test { - public static void main(String[] args) { + public static void main(String [] args) { HashMap map = new HashMap<>(); - Deque deque = new ArrayDeque<>(); + ArrayDeque deque = new ArrayDeque<>(); Scanner scan = new Scanner(System.in); int n = scan.nextInt(); diff --git a/Java/README.md b/Java/README.md index 64a3cd0..b7fdf48 100644 --- a/Java/README.md +++ b/Java/README.md @@ -1,69 +1,69 @@ # Java -| Subdomain | Challenge | Difficulty | Solution | -|:---------------------------:|:------------------------------------------------------------------------------------------------------------------------:|:----------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| -| Introduction | [Welcome to Java!](https://www.hackerrank.com/challenges/welcome-to-java) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Welcome%20to%20Java!/Solution.java) | -| Introduction | [Java Stdin and Stdout I](https://www.hackerrank.com/challenges/java-stdin-and-stdout-1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Stdin%20and%20Stdout%20I/Solution.java) | -| Introduction | [Java If-Else](https://www.hackerrank.com/challenges/java-if-else) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20If-Else/Solution.java) | -| Introduction | [Java Stdin and Stdout II](https://www.hackerrank.com/challenges/java-stdin-stdout) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Stdin%20and%20Stdout%20II/Solution.java) | -| Introduction | [Java Output Formatting](https://www.hackerrank.com/challenges/java-output-formatting) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Output%20Formatting/Solution.java) | -| Introduction | [Java Loops I](https://www.hackerrank.com/challenges/java-loops-i) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Loops%20I/Solution.java) | -| Introduction | [Java Loops II](https://www.hackerrank.com/challenges/java-loops) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Loops%20II/Solution.java) | -| Introduction | [Java Datatypes](https://www.hackerrank.com/challenges/java-datatypes) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Datatypes/Solution.java) | -| Introduction | [Java End-of-file](https://www.hackerrank.com/challenges/java-end-of-file) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20End-of-file/Solution.java) | -| Introduction | [Java Static Initializer Block](https://www.hackerrank.com/challenges/java-static-initializer-block) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Static%20Initializer%20Block/Solution.java) | -| Introduction | [Java Int to String](https://www.hackerrank.com/challenges/java-int-to-string) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Int%20to%20String/Solution.java) | -| Introduction | [Java Date and Time](https://www.hackerrank.com/challenges/java-date-and-time) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Date%20and%20Time/Solution.java) | -| Introduction | [Java Currency Formatter](https://www.hackerrank.com/challenges/java-currency-formatter) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Currency%20Formatter/Solution.java) | -| Strings | [Java Strings Introduction](https://www.hackerrank.com/challenges/java-strings-introduction) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Strings%20Introduction/Solution.java) | -| Strings | [Java Substring](https://www.hackerrank.com/challenges/java-substring) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Substring/Solution.java) | -| Strings | [Java String Compare](https://www.hackerrank.com/challenges/java-string-compare) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20String%20Compare/Solution.java) | -| Strings | [Java String Reverse](https://www.hackerrank.com/challenges/java-string-reverse) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20String%20Reverse/Solution.java) | -| Strings | [Java Anagrams](https://www.hackerrank.com/challenges/java-anagrams) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Anagrams/Solution.java) | -| Strings | [Java String Tokens](https://www.hackerrank.com/challenges/java-string-tokens) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20String%20Tokens/Solution.java) | -| Strings | [Pattern Syntax Checker](https://www.hackerrank.com/challenges/pattern-syntax-checker) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Pattern%20Syntax%20Checker/Solution.java) | -| Strings | [Java Regex](https://www.hackerrank.com/challenges/java-regex) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Regex/Solution.java) | -| Strings | [Java Regex 2 - Duplicate Words](https://www.hackerrank.com/challenges/duplicate-word) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Regex%202%20-%20Duplicate%20Words/Solution.java) | -| Strings | [Java Regex 3 - Username Checker](https://www.hackerrank.com/challenges/valid-username-checker) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Regex%203%20-%20Username%20Checker/Solution.java) | -| Strings | [Tag Content Extractor](https://www.hackerrank.com/challenges/tag-content-extractor) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Tag%20Content%20Extractor/Solution.java) | -| BigNumber | [Java BigInteger](https://www.hackerrank.com/challenges/java-biginteger) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/BigNumber/Java%20BigInteger/Solution.java) | -| BigNumber | [Java BigDecimal](https://www.hackerrank.com/challenges/java-bigdecimal) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/BigNumber/Java%20BigDecimal/Solution.java) | -| BigNumber | [Java Primality Test](https://www.hackerrank.com/challenges/java-primality-test) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/BigNumber/Java%20Primality%20Test/Solution.java) | -| Data Structures | [Java 1D Array](https://www.hackerrank.com/challenges/java-1d-array-introduction) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%201D%20Array/Solution.java) | -| Data Structures | [Java 2D Array](https://www.hackerrank.com/challenges/java-2d-array) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%202D%20Array/Solution.java) | -| Data Structures | [Java Subarray](https://www.hackerrank.com/challenges/java-negative-subarray) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Subarray/Solution.java) | -| Data Structures | [Java Arraylist](https://www.hackerrank.com/challenges/java-arraylist) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20ArrayList/Solution.java) | -| Data Structures | [Java 1D Array (Part 2)](https://www.hackerrank.com/challenges/java-1d-array) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%201D%20Array%20(Part%202)/Solution.java) | -| Data Structures | [Java List](https://www.hackerrank.com/challenges/java-list) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20List/Solution.java) | -| Data Structures | [Java Map](https://www.hackerrank.com/challenges/phone-book) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Map/Solution.java) | -| Data Structures | [Java Stack](https://www.hackerrank.com/challenges/java-stack) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Stack/Solution.java) | -| Data Structures | [Java Hashset](https://www.hackerrank.com/challenges/java-hashset) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Hashset/Solution.java) | -| Data Structures | [Java Generics](https://www.hackerrank.com/challenges/java-generics) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Generics/Solution.java) | -| Data Structures | [Java Comparator](https://www.hackerrank.com/challenges/java-comparator) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Comparator/Solution.java) | -| Data Structures | [Java Sort](https://www.hackerrank.com/challenges/java-sort) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Sort/Solution.java) | -| Data Structures | [Java Dequeue](https://www.hackerrank.com/challenges/java-dequeue) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Dequeue/Solution.java) | -| Data Structures | [Java BitSet](https://www.hackerrank.com/challenges/java-bitset) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20BitSet/Solution.java) | -| Data Structures | [Java Priority Queue](https://www.hackerrank.com/challenges/java-priority-queue) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Priority%20Queue/Solution.java) | -| Object Oriented Programming | [Java Inheritance I](https://www.hackerrank.com/challenges/java-inheritance-1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Inheritance%20I/Solution.java) | -| Object Oriented Programming | [Java Inheritance II](https://www.hackerrank.com/challenges/java-inheritance-2) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Inheritance%20II/Solution.java) | -| Object Oriented Programming | [Java Abstract Class](https://www.hackerrank.com/challenges/java-abstract-class) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Abstract%20Class/Solution.java) | -| Object Oriented Programming | [Java Interface](https://www.hackerrank.com/challenges/java-interface) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Interface/Solution.java) | -| Object Oriented Programming | [Java Method Overriding](https://www.hackerrank.com/challenges/java-method-overriding) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Method%20Overriding/Solution.java) | -| Object Oriented Programming | [Java Method Overriding 2 (Super Keyword)](https://www.hackerrank.com/challenges/java-method-overriding-2-super-keyword) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Method%20Overriding%202%20(Super%20Keyword)/Solution.java) | -| Object Oriented Programming | [Java Instanceof keyword](https://www.hackerrank.com/challenges/java-instanceof-keyword) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Instanceof%20keyword/Solution.java) | -| Object Oriented Programming | [Java Iterator](https://www.hackerrank.com/challenges/java-iterator) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Iterator/Solution.java) | -| Object Oriented Programming | [Calculating Volume](https://www.hackerrank.com/challenges/calculating-volume) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Calculating%20Volume/Solution.java) | -| Exception Handling | [Java Exception Handling (Try-catch)](https://www.hackerrank.com/challenges/java-exception-handling-try-catch) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Exception%20Handling/Java%20Exception%20Handling%20(Try-catch)/Solution.java) | -| Exception Handling | [Java Exception Handling](https://www.hackerrank.com/challenges/java-exception-handling) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Exception%20Handling/Java%20Exception%20Handling/Solution.java) | -| Advanced | [Java Varargs - Simple Addition](https://www.hackerrank.com/challenges/simple-addition-varargs) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Varargs%20-%20Simple%20Addition/Solution.java) | -| Advanced | [Java Reflection - Attributes](https://www.hackerrank.com/challenges/java-reflection-attributes) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Reflection%20-%20Attributes/Solution.java) | -| Advanced | [Can You Access](https://www.hackerrank.com/challenges/can-you-access) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Can%20You%20Access/Solution.java) | -| Advanced | [Prime Checker](https://www.hackerrank.com/challenges/prime-checker) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Prime%20Checker/Solution.java) | -| Advanced | [Java Factory Pattern](https://www.hackerrank.com/challenges/java-factory) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Factory%20Pattern/Solution.java) | -| Advanced | [Java Singleton Pattern](https://www.hackerrank.com/challenges/java-singleton) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Singleton%20Pattern/Solution.java) | -| Advanced | [Java Visitor Pattern](https://www.hackerrank.com/challenges/java-vistor-pattern) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Visitor%20Pattern/Solution.java) | -| Advanced | [Java Annotations](https://www.hackerrank.com/challenges/java-annotations) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Annotations/Solution.java) | -| Advanced | [Covariant Return Types](https://www.hackerrank.com/challenges/java-covariance) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Covariant%20Return%20Types/Solution.java) | -| Advanced | [Java Lambda Expressions](https://www.hackerrank.com/challenges/java-lambda-expressions) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Lambda%20Expressions/Solution.java) | -| Advanced | [Java MD5](https://www.hackerrank.com/challenges/java-md5) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20MD5/Solution.java) | -| Advanced | [Java SHA-256](https://www.hackerrank.com/challenges/sha-256) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20SHA-256/Solution.java) | +| Subdomain | Challenge | Points | Solution | +|:---------------------------:|:------------------------------------------------------------------------------------------------------------------------:|:------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| +| Introduction | [Welcome to Java!](https://www.hackerrank.com/challenges/welcome-to-java) | 3 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Welcome%20to%20Java!/Solution.java) | +| Introduction | [Java Stdin and Stdout I](https://www.hackerrank.com/challenges/java-stdin-and-stdout-1) | 5 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Stdin%20and%20Stdout%20I/Solution.java) | +| Introduction | [Java If-Else](https://www.hackerrank.com/challenges/java-if-else) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20If-Else/Solution.java) | +| Introduction | [Java Stdin and Stdout II](https://www.hackerrank.com/challenges/java-stdin-stdout) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Stdin%20and%20Stdout%20II/Solution.java) | +| Introduction | [Java Output Formatting](https://www.hackerrank.com/challenges/java-output-formatting) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Output%20Formatting/Solution.java) | +| Introduction | [Java Loops I](https://www.hackerrank.com/challenges/java-loops-i) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Loops%20I/Solution.java) | +| Introduction | [Java Loops II](https://www.hackerrank.com/challenges/java-loops) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Loops%20II/Solution.java) | +| Introduction | [Java Datatypes](https://www.hackerrank.com/challenges/java-datatypes) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Datatypes/Solution.java) | +| Introduction | [Java End-of-file](https://www.hackerrank.com/challenges/java-end-of-file) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20End-of-file/Solution.java) | +| Introduction | [Java Static Initializer Block](https://www.hackerrank.com/challenges/java-static-initializer-block) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Static%20Initializer%20Block/Solution.java) | +| Introduction | [Java Int to String](https://www.hackerrank.com/challenges/java-int-to-string) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Int%20to%20String/Solution.java) | +| Introduction | [Java Date and Time](https://www.hackerrank.com/challenges/java-date-and-time) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Date%20and%20Time/Solution.java) | +| Introduction | [Java Currency Formatter](https://www.hackerrank.com/challenges/java-currency-formatter) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Currency%20Formatter/Solution.java) | +| Strings | [Java Strings Introduction](https://www.hackerrank.com/challenges/java-strings-introduction) | 5 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Strings%20Introduction/Solution.java) | +| Strings | [Java Substring](https://www.hackerrank.com/challenges/java-substring) | 5 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Substring/Solution.java) | +| Strings | [Java String Compare](https://www.hackerrank.com/challenges/java-string-compare) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20String%20Compare/Solution.java) | +| Strings | [Java String Reverse](https://www.hackerrank.com/challenges/java-string-reverse) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20String%20Reverse/Solution.java) | +| Strings | [Java Anagrams](https://www.hackerrank.com/challenges/java-anagrams) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Anagrams/Solution.java) | +| Strings | [Java String Tokens](https://www.hackerrank.com/challenges/java-string-tokens) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20String%20Tokens/Solution.java) | +| Strings | [Pattern Syntax Checker](https://www.hackerrank.com/challenges/pattern-syntax-checker) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Pattern%20Syntax%20Checker/Solution.java) | +| Strings | [Java Regex](https://www.hackerrank.com/challenges/java-regex) | 25 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Regex/Solution.java) | +| Strings | [Java Regex 2 - Duplicate Words](https://www.hackerrank.com/challenges/duplicate-word) | 25 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Regex%202%20-%20Duplicate%20Words/Solution.java) | +| Strings | [Java Regex 3 - Username Checker](https://www.hackerrank.com/challenges/valid-username-checker) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Regex%203%20-%20Username%20Checker/Solution.java) | +| Strings | [Tag Content Extractor](https://www.hackerrank.com/challenges/tag-content-extractor) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Tag%20Content%20Extractor/Solution.java) | +| BigNumber | [Java BigInteger](https://www.hackerrank.com/challenges/java-biginteger) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/BigNumber/Java%20BigInteger/Solution.java) | +| BigNumber | [Java BigDecimal](https://www.hackerrank.com/challenges/java-bigdecimal) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/BigNumber/Java%20BigDecimal/Solution.java) | +| BigNumber | [Java Primality Test](https://www.hackerrank.com/challenges/java-primality-test) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/BigNumber/Java%20Primality%20Test/Solution.java) | +| Data Structures | [Java 1D Array](https://www.hackerrank.com/challenges/java-1d-array-introduction) | 5 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%201D%20Array/Solution.java) | +| Data Structures | [Java 2D Array](https://www.hackerrank.com/challenges/java-2d-array) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%202D%20Array/Solution.java) | +| Data Structures | [Java Subarray](https://www.hackerrank.com/challenges/java-negative-subarray) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Subarray/Solution.java) | +| Data Structures | [Java Arraylist](https://www.hackerrank.com/challenges/java-arraylist) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20ArrayList/Solution.java) | +| Data Structures | [Java 1D Array (Part 2)](https://www.hackerrank.com/challenges/java-1d-array) | 25 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%201D%20Array%20(Part%202)/Solution.java) | +| Data Structures | [Java List](https://www.hackerrank.com/challenges/java-list) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20List/Solution.java) | +| Data Structures | [Java Map](https://www.hackerrank.com/challenges/phone-book) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Map/Solution.java) | +| Data Structures | [Java Stack](https://www.hackerrank.com/challenges/java-stack) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Stack/Solution.java) | +| Data Structures | [Java Hashset](https://www.hackerrank.com/challenges/java-hashset) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Hashset/Solution.java) | +| Data Structures | [Java Generics](https://www.hackerrank.com/challenges/java-generics) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Generics/Solution.java) | +| Data Structures | [Java Comparator](https://www.hackerrank.com/challenges/java-comparator) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Comparator/Solution.java) | +| Data Structures | [Java Sort](https://www.hackerrank.com/challenges/java-sort) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Sort/Solution.java) | +| Data Structures | [Java Dequeue](https://www.hackerrank.com/challenges/java-dequeue) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Dequeue/Solution.java) | +| Data Structures | [Java BitSet](https://www.hackerrank.com/challenges/java-bitset) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20BitSet/Solution.java) | +| Data Structures | [Java Priority Queue](https://www.hackerrank.com/challenges/java-priority-queue) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Priority%20Queue/Solution.java) | +| Object Oriented Programming | [Java Inheritance I](https://www.hackerrank.com/challenges/java-inheritance-1) | 5 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Inheritance%20I/Solution.java) | +| Object Oriented Programming | [Java Inheritance II](https://www.hackerrank.com/challenges/java-inheritance-2) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Inheritance%20II/Solution.java) | +| Object Oriented Programming | [Java Abstract Class](https://www.hackerrank.com/challenges/java-abstract-class) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Abstract%20Class/Solution.java) | +| Object Oriented Programming | [Java Interface](https://www.hackerrank.com/challenges/java-interface) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Interface/Solution.java) | +| Object Oriented Programming | [Java Method Overriding](https://www.hackerrank.com/challenges/java-method-overriding) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Method%20Overriding/Solution.java) | +| Object Oriented Programming | [Java Method Overriding 2 (Super Keyword)](https://www.hackerrank.com/challenges/java-method-overriding-2-super-keyword) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Method%20Overriding%202%20(Super%20Keyword)/Solution.java) | +| Object Oriented Programming | [Java Instanceof keyword](https://www.hackerrank.com/challenges/java-instanceof-keyword) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Instanceof%20keyword/Solution.java) | +| Object Oriented Programming | [Java Iterator](https://www.hackerrank.com/challenges/java-iterator) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Iterator/Solution.java) | +| Object Oriented Programming | [Calculating Volume](https://www.hackerrank.com/challenges/calculating-volume) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Calculating%20Volume/Solution.java) | +| Exception Handling | [Java Exception Handling (Try-catch)](https://www.hackerrank.com/challenges/java-exception-handling-try-catch) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Exception%20Handling/Java%20Exception%20Handling%20(Try-catch)/Solution.java) | +| Exception Handling | [Java Exception Handling](https://www.hackerrank.com/challenges/java-exception-handling) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Exception%20Handling/Java%20Exception%20Handling/Solution.java) | +| Advanced | [Java Varargs - Simple Addition](https://www.hackerrank.com/challenges/simple-addition-varargs) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Varargs%20-%20Simple%20Addition/Solution.java) | +| Advanced | [Java Reflection - Attributes](https://www.hackerrank.com/challenges/java-reflection-attributes) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Reflection%20-%20Attributes/Solution.java) | +| Advanced | [Can You Access](https://www.hackerrank.com/challenges/can-you-access) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Can%20You%20Access/Solution.java) | +| Advanced | [Prime Checker](https://www.hackerrank.com/challenges/prime-checker) | 25 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Prime%20Checker/Solution.java) | +| Advanced | [Java Factory Pattern](https://www.hackerrank.com/challenges/java-factory) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Factory%20Pattern/Solution.java) | +| Advanced | [Java Singleton Pattern](https://www.hackerrank.com/challenges/java-singleton) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Singleton%20Pattern/Solution.java) | +| Advanced | [Java Visitor Pattern](https://www.hackerrank.com/challenges/java-vistor-pattern) | 40 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Visitor%20Pattern/Solution.java) | +| Advanced | [Java Annotations](https://www.hackerrank.com/challenges/java-annotations) | 25 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Annotations/Solution.java) | +| Advanced | [Covariant Return Types](https://www.hackerrank.com/challenges/java-covariance) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Covariant%20Return%20Types/Solution.java) | +| Advanced | [Java Lambda Expressions](https://www.hackerrank.com/challenges/java-lambda-expressions) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Lambda%20Expressions/Solution.java) | +| Advanced | [Java MD5](https://www.hackerrank.com/challenges/java-md5) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20MD5/Solution.java) | +| Advanced | [Java SHA-256](https://www.hackerrank.com/challenges/sha-256) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20SHA-256/Solution.java) | diff --git a/README.md b/README.md index 338a6fc..c055393 100644 --- a/README.md +++ b/README.md @@ -2,88 +2,87 @@ -
292 efficient solutions to HackerRank problems +
301 efficient solutions to HackerRank problems

* [10 Days of Statistics](#10-days-of-statistics) (Complete) -* [30 Days of Code](#30-days-of-code) (28/30 solutions) -* [Algorithms](#algorithms) (71/370 solutions) +* [30 Days of Code](#30-days-of-code) (28 solutions) +* [Algorithms](#algorithms) (80 solutions) * [Cracking the Coding Interview](#cracking-the-coding-interview) (Complete) -* [Data Structures](#data-structures) (41/107 solutions) +* [Data Structures](#data-structures) (41 solutions) * [Java](#java) (Complete) -* [SQL](#sql) (40/58 solutions) +* [SQL](#sql) (40 solutions) Solutions are coded using Java 8 SQL solutions are coded using MySQL + # 10 Days of Statistics -| Day | Challenge | Difficulty | Solution | -|:---:|:--------------------------------------------------------------------------------------------------------------------------:|:---------------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| -| 0 | [Mean, Median, and Mode](https://www.hackerrank.com/challenges/s10-basic-statistics) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%200%20-%20Mean%2C%20Median%2C%20and%20Mode/Solution.java) | -| 0 | [Weighted Mean](https://www.hackerrank.com/challenges/s10-weighted-mean) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%200%20-%20Weighted%20Mean/Solution.java) | -| 1 | [Quartiles](https://www.hackerrank.com/challenges/s10-quartiles) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%201%20-%20Quartiles/Solution.java) | -| 1 | [Interquartile Range](https://www.hackerrank.com/challenges/s10-interquartile-range) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%201%20-%20Interquartile%20Range/Solution.java) | -| 1 | [Standard Deviation](https://www.hackerrank.com/challenges/s10-standard-deviation) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%201%20-%20Standard%20Deviation/Solution.java) | -| 2 | [Basic Probability](https://www.hackerrank.com/challenges/s10-mcq-1) | Multiple Choice | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%202%20-%20Basic%20Probability/Solution.txt) | -| 2 | [More Dice](https://www.hackerrank.com/challenges/s10-mcq-2) | Multiple Choice | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%202%20-%20More%20Dice/Solution.txt) | -| 2 | [Compound Event Probability](https://www.hackerrank.com/challenges/s10-mcq-3) | Multiple Choice | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%202%20-%20Compound%20Event%20Probability/Solution.txt) | -| 3 | [Conditional Probability](https://www.hackerrank.com/challenges/s10-mcq-4) | Multiple Choice | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%203%20-%20Conditional%20Probability/Solution.txt) | -| 3 | [Cards of the Same Suit](https://www.hackerrank.com/challenges/s10-mcq-5) | Multiple Choice | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%203%20-%20Cards%20of%20the%20Same%20Suit/Solution.txt) | -| 3 | [Drawing Marbles](https://www.hackerrank.com/challenges/s10-mcq-6) | Multiple Choice | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%203%20-%20Drawing%20Marbles/Solution.txt) | -| 4 | [Binomial Distribution I](https://www.hackerrank.com/challenges/s10-binomial-distribution-1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%204%20-%20Binomial%20Distribution%20I/Solution.java) | -| 4 | [Binomial Distribution II](https://www.hackerrank.com/challenges/s10-binomial-distribution-2) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%204%20-%20Binomial%20Distribution%20II/Solution.java) | -| 4 | [Geometric Distribution I](https://www.hackerrank.com/challenges/s10-geometric-distribution-1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%204%20-%20Geometric%20Distribution%20I/Solution.java) | -| 4 | [Geometric Distribution II](https://www.hackerrank.com/challenges/s10-geometric-distribution-2) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%204%20-%20Geometric%20Distribution%20II/Solution.java) | -| 5 | [Poisson Distribution I](https://www.hackerrank.com/challenges/s10-poisson-distribution-1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%205%20-%20Poisson%20Distribution%20I/Solution.java) | -| 5 | [Poisson Distribution II](https://www.hackerrank.com/challenges/s10-poisson-distribution-2) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%205%20-%20Poisson%20Distribution%20II/Solution.java) | -| 5 | [Normal Distribution I](https://www.hackerrank.com/challenges/s10-normal-distribution-1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%205%20-%20Normal%20Distribution%20I/Solution.java) | -| 5 | [Normal Distribution II](https://www.hackerrank.com/challenges/s10-normal-distribution-2) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%205%20-%20Normal%20Distribution%20II/Solution.java) | -| 6 | [The Central Limit Theorem I](https://www.hackerrank.com/challenges/s10-the-central-limit-theorem-1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%206%20-%20The%20Central%20Limit%20Theorem%20I/Solution.java) | -| 6 | [The Central Limit Theorem II](https://www.hackerrank.com/challenges/s10-the-central-limit-theorem-2) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%206%20-%20The%20Central%20Limit%20Theorem%20II/Solution.java) | -| 6 | [The Central Limit Theorem III](https://www.hackerrank.com/challenges/s10-the-central-limit-theorem-3) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%206%20-%20The%20Central%20Limit%20Theorem%20III/Solution.java) | -| 7 | [Pearson Correlation Coefficient I](https://www.hackerrank.com/challenges/s10-pearson-correlation-coefficient) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%207%20-%20Pearson%20Correlation%20Coefficient%20I/Solution.java) | -| 7 | [Spearman's Rank Correlation Coefficient](https://www.hackerrank.com/challenges/s10-spearman-rank-correlation-coefficient) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%207%20-%20Spearman%27s%20Rank%20Correlation%20Coefficient/Solution.java) | -| 8 | [Least Square Regression Line](https://www.hackerrank.com/challenges/s10-least-square-regression-line) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%208%20-%20Least%20Square%20Regression%20Rate/Solution.java) | -| 8 | [Pearson Correlation Coefficient II](https://www.hackerrank.com/challenges/s10-mcq-7) | Multiple Choice | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%208%20-%20Pearson%20Correlation%20Coefficient%20II/Solution.txt) | -| 9 | [Multiple Linear Regression](https://www.hackerrank.com/challenges/s10-multiple-linear-regression) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%209%20-%20Multiple%20Linear%20Regression/Solution.java) | +| Day | Challenge | Points | Solution | +|:---:|:--------------------------------------------------------------------------------------------------------------------------:|:------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| +| 0 | [Mean, Median, and Mode](https://www.hackerrank.com/challenges/s10-basic-statistics) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%200%20-%20Mean%2C%20Median%2C%20and%20Mode/Solution.java) | +| 0 | [Weighted Mean](https://www.hackerrank.com/challenges/s10-weighted-mean) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%200%20-%20Weighted%20Mean/Solution.java) | +| 1 | [Quartiles](https://www.hackerrank.com/challenges/s10-quartiles) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%201%20-%20Quartiles/Solution.java) | +| 1 | [Interquartile Range](https://www.hackerrank.com/challenges/s10-interquartile-range) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%201%20-%20Interquartile%20Range/Solution.java) | +| 1 | [Standard Deviation](https://www.hackerrank.com/challenges/s10-standard-deviation) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%201%20-%20Standard%20Deviation/Solution.java) | +| 2 | [Basic Probability](https://www.hackerrank.com/challenges/s10-mcq-1) | 10 | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%202%20-%20Basic%20Probability/Solution.txt) | +| 2 | [More Dice](https://www.hackerrank.com/challenges/s10-mcq-2) | 10 | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%202%20-%20More%20Dice/Solution.txt) | +| 2 | [Compound Event Probability](https://www.hackerrank.com/challenges/s10-mcq-3) | 10 | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%202%20-%20Compound%20Event%20Probability/Solution.txt) | +| 3 | [Conditional Probability](https://www.hackerrank.com/challenges/s10-mcq-4) | 10 | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%203%20-%20Conditional%20Probability/Solution.txt) | +| 3 | [Cards of the Same Suit](https://www.hackerrank.com/challenges/s10-mcq-5) | 10 | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%203%20-%20Cards%20of%20the%20Same%20Suit/Solution.txt) | +| 3 | [Drawing Marbles](https://www.hackerrank.com/challenges/s10-mcq-6) | 10 | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%203%20-%20Drawing%20Marbles/Solution.txt) | +| 4 | [Binomial Distribution I](https://www.hackerrank.com/challenges/s10-binomial-distribution-1) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%204%20-%20Binomial%20Distribution%20I/Solution.java) | +| 4 | [Binomial Distribution II](https://www.hackerrank.com/challenges/s10-binomial-distribution-2) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%204%20-%20Binomial%20Distribution%20II/Solution.java) | +| 4 | [Geometric Distribution I](https://www.hackerrank.com/challenges/s10-geometric-distribution-1) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%204%20-%20Geometric%20Distribution%20I/Solution.java) | +| 4 | [Geometric Distribution II](https://www.hackerrank.com/challenges/s10-geometric-distribution-2) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%204%20-%20Geometric%20Distribution%20II/Solution.java) | +| 5 | [Poisson Distribution I](https://www.hackerrank.com/challenges/s10-poisson-distribution-1) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%205%20-%20Poisson%20Distribution%20I/Solution.java) | +| 5 | [Poisson Distribution II](https://www.hackerrank.com/challenges/s10-poisson-distribution-2) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%205%20-%20Poisson%20Distribution%20II/Solution.java) | +| 5 | [Normal Distribution I](https://www.hackerrank.com/challenges/s10-normal-distribution-1) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%205%20-%20Normal%20Distribution%20I/Solution.java) | +| 5 | [Normal Distribution II](https://www.hackerrank.com/challenges/s10-normal-distribution-2) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%205%20-%20Normal%20Distribution%20II/Solution.java) | +| 6 | [The Central Limit Theorem I](https://www.hackerrank.com/challenges/s10-the-central-limit-theorem-1) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%206%20-%20The%20Central%20Limit%20Theorem%20I/Solution.java) | +| 6 | [The Central Limit Theorem II](https://www.hackerrank.com/challenges/s10-the-central-limit-theorem-2) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%206%20-%20The%20Central%20Limit%20Theorem%20II/Solution.java) | +| 6 | [The Central Limit Theorem III](https://www.hackerrank.com/challenges/s10-the-central-limit-theorem-3) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%206%20-%20The%20Central%20Limit%20Theorem%20III/Solution.java) | +| 7 | [Pearson Correlation Coefficient I](https://www.hackerrank.com/challenges/s10-pearson-correlation-coefficient) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%207%20-%20Pearson%20Correlation%20Coefficient%20I/Solution.java) | +| 7 | [Spearman's Rank Correlation Coefficient](https://www.hackerrank.com/challenges/s10-spearman-rank-correlation-coefficient) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%207%20-%20Spearman%27s%20Rank%20Correlation%20Coefficient/Solution.java) | +| 8 | [Least Square Regression Line](https://www.hackerrank.com/challenges/s10-least-square-regression-line) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%208%20-%20Least%20Square%20Regression%20Rate/Solution.java) | +| 8 | [Pearson Correlation Coefficient II](https://www.hackerrank.com/challenges/s10-mcq-7) | 30 | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%208%20-%20Pearson%20Correlation%20Coefficient%20II/Solution.txt) | +| 9 | [Multiple Linear Regression](https://www.hackerrank.com/challenges/s10-multiple-linear-regression) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/10%20Days%20of%20Statistics/Day%209%20-%20Multiple%20Linear%20Regression/Solution.java) | # 30 Days of Code -| Day | Challenge | Difficulty | Solution | -|:---:|:-------------------------------------------------------------------------------------------------------:|:----------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| -| 0 | [Hello, World](https://www.hackerrank.com/challenges/30-hello-world) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2000%20-%20Hello%2C%20World/Solution.java) | -| 1 | [Data Types](https://www.hackerrank.com/challenges/30-data-types) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2001%20-%20Data%20Types/Solution.java) | -| 2 | [Operators](https://www.hackerrank.com/challenges/30-operators) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2002%20-%20Operators/Solution.java) | -| 3 | [Intro to Conditional Statements](https://www.hackerrank.com/challenges/30-conditional-statements) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2003%20-%20Intro%20to%20Conditional%20Statements/Solution.java) | -| 4 | [Class vs. Instance](https://www.hackerrank.com/challenges/30-class-vs-instance) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2004%20-%20Class%20vs.%20Instance/Solution.java) | -| 5 | [Loops](https://www.hackerrank.com/challenges/30-loops) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2005%20-%20Loops/Solution.java) | -| 6 | [Let's Review](https://www.hackerrank.com/challenges/30-review-loop) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2006%20-%20Let's%20Review/Solution.java) | -| 7 | [Arrays](https://www.hackerrank.com/challenges/30-arrays) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2007%20-%20Arrays/Solution.java) | -| 8 | [Dictionaries and Maps](https://www.hackerrank.com/challenges/30-dictionaries-and-maps) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2008%20-%20Dictionaries%20and%20Maps/Solution.java) | -| 9 | [Recursion](https://www.hackerrank.com/challenges/30-recursion) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2009%20-%20Recursion/Solution.java) | -| 10 | [Binary Numbers](https://www.hackerrank.com/challenges/30-binary-numbers) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2010%20-%20Binary%20Numbers/Solution.java) | -| 11 | [2D Arrays](https://www.hackerrank.com/challenges/30-2d-arrays) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2011%20-%202D%20Arrays/Solution.java) | -| 12 | [Inheritance](https://www.hackerrank.com/challenges/30-inheritance) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2012%20-%20Inheritance/Solution.java) | -| 13 | [Abstract Classes](https://www.hackerrank.com/challenges/30-abstract-classes) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2013%20-%20Abstract%20Classes/Solution.java) | -| 14 | [Scope](https://www.hackerrank.com/challenges/30-scope) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2014%20-%20Scope/Solution.java) | -| 15 | [Linked List](https://www.hackerrank.com/challenges/30-linked-list) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2015%20-%20Linked%20List/Solution.java) | -| 16 | [Exceptions - String to Integer](https://www.hackerrank.com/challenges/30-exceptions-string-to-integer) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2016%20-%20Exceptions%20-%20String%20to%20Integer/Solution.java) | -| 17 | [More Exceptions](https://www.hackerrank.com/challenges/30-more-exceptions) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2017%20-%20More%20Exceptions/Solution.java) | -| 18 | [Queues and Stacks](https://www.hackerrank.com/challenges/30-queues-stacks) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2018%20-%20Queues%20and%20Stacks/Solution.java) | -| 19 | [Interfaces](https://www.hackerrank.com/challenges/30-interfaces) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2019%20-%20Interfaces/Solution.java) | -| 20 | [Sorting](https://www.hackerrank.com/challenges/30-sorting) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2020%20-%20Sorting/Solution.java) | -| 21 | [Generics](https://www.hackerrank.com/challenges/30-generics) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2021%20-%20Generics/Solution.java) | -| 22 | [Binary Search Trees](https://www.hackerrank.com/challenges/30-binary-search-trees) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2022%20-%20Binary%20Search%20Trees/Solution.java) | -| 23 | [BST Level-Order Traversal](https://www.hackerrank.com/challenges/30-binary-trees) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2023%20-%20BST%20Level-Order%20Traversal/Solution.java) | -| 24 | [More Linked Lists](https://www.hackerrank.com/challenges/30-linked-list-deletion) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2024%20-%20More%20Linked%20Lists/Solution.java) | -| 25 | [Running Time and Complexity](https://www.hackerrank.com/challenges/30-running-time-and-complexity) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2025%20-%20Running%20Time%20and%20Complexity/Solution.java) | -| 26 | [Nested Logic](https://www.hackerrank.com/challenges/30-nested-logic) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2026%20-%20Nested%20Logic/Solution.java) | -| 27 | [Testing](https://www.hackerrank.com/challenges/30-testing) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2027%20-%20Testing/Solution.java) | -| 28 | [RegEx, Patterns, and Intro to Databases](https://www.hackerrank.com/challenges/30-regex-patterns) | Medium | Coming Soon! | -| 29 | [Bitwise AND](https://www.hackerrank.com/challenges/30-bitwise-and) | Medium | Coming Soon! | +| Day | Challenge | Points | Solution | +|:---:|:-------------------------------------------------------------------------------------------------------:|:------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| +| 0 | [Hello, World](https://www.hackerrank.com/challenges/30-hello-world) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2000%20-%20Hello%2C%20World/Solution.java) | +| 1 | [Data Types](https://www.hackerrank.com/challenges/30-data-types) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2001%20-%20Data%20Types/Solution.java) | +| 2 | [Operators](https://www.hackerrank.com/challenges/30-operators) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2002%20-%20Operators/Solution.java) | +| 3 | [Intro to Conditional Statements](https://www.hackerrank.com/challenges/30-conditional-statements) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2003%20-%20Intro%20to%20Conditional%20Statements/Solution.java) | +| 4 | [Class vs. Instance](https://www.hackerrank.com/challenges/30-class-vs-instance) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2004%20-%20Class%20vs.%20Instance/Solution.java) | +| 5 | [Loops](https://www.hackerrank.com/challenges/30-loops) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2005%20-%20Loops/Solution.java) | +| 6 | [Let's Review](https://www.hackerrank.com/challenges/30-review-loop) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2006%20-%20Let's%20Review/Solution.java) | +| 7 | [Arrays](https://www.hackerrank.com/challenges/30-arrays) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2007%20-%20Arrays/Solution.java) | +| 8 | [Dictionaries and Maps](https://www.hackerrank.com/challenges/30-dictionaries-and-maps) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2008%20-%20Dictionaries%20and%20Maps/Solution.java) | +| 9 | [Recursion](https://www.hackerrank.com/challenges/30-recursion) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2009%20-%20Recursion/Solution.java) | +| 10 | [Binary Numbers](https://www.hackerrank.com/challenges/30-binary-numbers) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2010%20-%20Binary%20Numbers/Solution.java) | +| 11 | [2D Arrays](https://www.hackerrank.com/challenges/30-2d-arrays) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2011%20-%202D%20Arrays/Solution.java) | +| 12 | [Inheritance](https://www.hackerrank.com/challenges/30-inheritance) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2012%20-%20Inheritance/Solution.java) | +| 13 | [Abstract Classes](https://www.hackerrank.com/challenges/30-abstract-classes) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2013%20-%20Abstract%20Classes/Solution.java) | +| 14 | [Scope](https://www.hackerrank.com/challenges/30-scope) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2014%20-%20Scope/Solution.java) | +| 15 | [Linked List](https://www.hackerrank.com/challenges/30-linked-list) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2015%20-%20Linked%20List/Solution.java) | +| 16 | [Exceptions - String to Integer](https://www.hackerrank.com/challenges/30-exceptions-string-to-integer) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2016%20-%20Exceptions%20-%20String%20to%20Integer/Solution.java) | +| 17 | [More Exceptions](https://www.hackerrank.com/challenges/30-more-exceptions) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2017%20-%20More%20Exceptions/Solution.java) | +| 18 | [Queues and Stacks](https://www.hackerrank.com/challenges/30-queues-stacks) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2018%20-%20Queues%20and%20Stacks/Solution.java) | +| 19 | [Interfaces](https://www.hackerrank.com/challenges/30-interfaces) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2019%20-%20Interfaces/Solution.java) | +| 20 | [Sorting](https://www.hackerrank.com/challenges/30-sorting) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2020%20-%20Sorting/Solution.java) | +| 21 | [Generics](https://www.hackerrank.com/challenges/30-generics) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2021%20-%20Generics/Solution.java) | +| 22 | [Binary Search Trees](https://www.hackerrank.com/challenges/30-binary-search-trees) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2022%20-%20Binary%20Search%20Trees/Solution.java) | +| 23 | [BST Level-Order Traversal](https://www.hackerrank.com/challenges/30-binary-trees) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2023%20-%20BST%20Level-Order%20Traversal/Solution.java) | +| 24 | [More Linked Lists](https://www.hackerrank.com/challenges/30-linked-list-deletion) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2024%20-%20More%20Linked%20Lists/Solution.java) | +| 25 | [Running Time and Complexity](https://www.hackerrank.com/challenges/30-running-time-and-complexity) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2025%20-%20Running%20Time%20and%20Complexity/Solution.java) | +| 26 | [Nested Logic](https://www.hackerrank.com/challenges/30-nested-logic) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2026%20-%20Nested%20Logic/Solution.java) | +| 27 | [Testing](https://www.hackerrank.com/challenges/30-testing) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/30%20Days%20of%20Code/Day%2027%20-%20Testing/Solution.java) | # Algorithms @@ -122,78 +121,25 @@ SQL solutions are coded using MySQL | Implementation | [Sherlock and Squares](https://www.hackerrank.com/challenges/sherlock-and-squares) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Sherlock%20and%20Squares/Solution.java) | | Implementation | [Library Fine](https://www.hackerrank.com/challenges/library-fine) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Library%20Fine/Solution.java) | | Implementation | [Cut the sticks](https://www.hackerrank.com/challenges/cut-the-sticks) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Cut%20the%20sticks/Solution.java) | -| Implementation | [Non-Divisible Subset](https://www.hackerrank.com/challenges/non-divisible-subset) | Medium | Coming Soon! | | Implementation | [Repeated String](https://www.hackerrank.com/challenges/repeated-string) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Repeated%20String/Solution.java) | | Implementation | [Jumping on the Clouds](https://www.hackerrank.com/challenges/jumping-on-the-clouds) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Jumping%20on%20the%20Clouds/Solution.java) | | Implementation | [Equalize the Array](https://www.hackerrank.com/challenges/equality-in-a-array) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Equalize%20the%20Array/Solution.java) | -| Implementation | [ACM ICPC Team](https://www.hackerrank.com/challenges/acm-icpc-team) | Easy | Coming Soon! | | Implementation | [Taum and B'day](https://www.hackerrank.com/challenges/taum-and-bday) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Taum%20and%20B%27day/Solution.java) | -| Implementation | [Organizing Containers of Balls](https://www.hackerrank.com/challenges/organizing-containers-of-balls) | Medium | Coming Soon! | -| Implementation | [Encryption](https://www.hackerrank.com/challenges/encryption) | Medium | Coming Soon! | -| Implementation | [Bigger is Greater](https://www.hackerrank.com/challenges/bigger-is-greater) | Medium | Coming Soon! | | Implementation | [Modified Kaprekar Numbers](https://www.hackerrank.com/challenges/kaprekar-numbers) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Modified%20Kaprekar%20Numbers/Solution.java) | | Implementation | [Beautiful Triplets](https://www.hackerrank.com/challenges/beautiful-triplets) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Beautiful%20Triplets/Solution.java) | | Implementation | [Manasa and Stones](https://www.hackerrank.com/challenges/manasa-and-stones) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Implementation/Manasa%20and%20Stones/Solution.java) | -| Implementation | [Minimum Distances](https://www.hackerrank.com/challenges/minimum-distances) | Easy | Coming Soon! | -| Implementation | [The Time in Words](https://www.hackerrank.com/challenges/the-time-in-words) | Medium | Coming Soon! | -| Implementation | [Cavity Map](https://www.hackerrank.com/challenges/cavity-map) | Easy | Coming Soon! | -| Implementation | [Chocolate Feast](https://www.hackerrank.com/challenges/chocolate-feast) | Easy | Coming Soon! | -| Implementation | [Service Lane](https://www.hackerrank.com/challenges/service-lane) | Easy | Coming Soon! | -| Implementation | [Lisa's Workbook](https://www.hackerrank.com/challenges/lisa-workbook) | Easy | Coming Soon! | -| Implementation | [The Grid Search](https://www.hackerrank.com/challenges/the-grid-search) | Medium | Coming Soon! | -| Implementation | [Flatland Space Stations](https://www.hackerrank.com/challenges/flatland-space-stations) | Easy | Coming Soon! | -| Implementation | [Fair Rations](https://www.hackerrank.com/challenges/fair-rations) | Easy | Coming Soon! | -| Implementation | [Happy Ladybugs](https://www.hackerrank.com/challenges/happy-ladybugs) | Easy | Coming Soon! | -| Implementation | [Strange Counter](https://www.hackerrank.com/challenges/strange-code) | Easy | Coming Soon! | -| Implementation | [Almost Sorted](https://www.hackerrank.com/challenges/almost-sorted) | Medium | Coming Soon! | -| Implementation | [Absolute Permutation](https://www.hackerrank.com/challenges/absolute-permutation) | Medium | Coming Soon! | -| Implementation | [The Bomberman Game](https://www.hackerrank.com/challenges/bomber-man) | Medium | Coming Soon! | -| Implementation | [Ema's Supercomputer](https://www.hackerrank.com/challenges/two-pluses) | Medium | Coming Soon! | -| Implementation | [Larry's Array](https://www.hackerrank.com/challenges/larrys-array) | Medium | Coming Soon! | -| Implementation | [Matrix Layer Rotation](https://www.hackerrank.com/challenges/matrix-rotation-algo) | Hard | Coming Soon! | | Strings | [Super Reduced String](https://www.hackerrank.com/challenges/reduced-string) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Super%20Reduced%20String/Solution.java) | | Strings | [CamelCase](https://www.hackerrank.com/challenges/camelcase) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/CamelCase/Solution.java) | | Strings | [Two Characters](https://www.hackerrank.com/challenges/two-characters) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Two%20Characters/Solution.java) | | Strings | [Caesar Cipher](https://www.hackerrank.com/challenges/caesar-cipher-1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Caesar%20Cipher/Solution.java) | -| Strings | [Mars Exploration](https://www.hackerrank.com/challenges/mars-exploration) | Easy | Coming Soon! | +| Strings | [Mars Exploration](https://www.hackerrank.com/challenges/mars-exploration) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Mars%20Exploration/Solution.java) | | Strings | [HackerRank in a String!](https://www.hackerrank.com/challenges/hackerrank-in-a-string) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/HackerRank%20in%20a%20String!/Solution.java) | | Strings | [Pangrams](https://www.hackerrank.com/challenges/pangrams) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Pangrams/Solution.java) | | Strings | [Weighted Uniform Strings](https://www.hackerrank.com/challenges/weighted-uniform-string) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Weighted%20Uniform%20Strings/Solution.java) | -| Strings | [Separate the Numbers](https://www.hackerrank.com/challenges/separate-the-numbers) | Easy | Coming Soon! | -| Strings | [Funny String](https://www.hackerrank.com/challenges/funny-string) | Easy | Coming Soon! | -| Strings | [Gemstones](https://www.hackerrank.com/challenges/gem-stones) | Easy | Coming Soon! | -| Strings | [Alternating Characters](https://www.hackerrank.com/challenges/alternating-characters) | Easy | Coming Soon! | -| Strings | [Beautiful Binary String](https://www.hackerrank.com/challenges/beautiful-binary-string) | Easy | Coming Soon! | -| Strings | [The Love-Letter Mystery](https://www.hackerrank.com/challenges/the-love-letter-mystery) | Easy | Coming Soon! | -| Strings | [Palindrome Index](https://www.hackerrank.com/challenges/palindrome-index) | Easy | Coming Soon! | -| Strings | [Anagram](https://www.hackerrank.com/challenges/anagram) | Easy | Coming Soon! | +| Strings | [Gemstones](https://www.hackerrank.com/challenges/gem-stones) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Gemstones/Solution.java) | +| Strings | [Alternating Characters](https://www.hackerrank.com/challenges/alternating-characters) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Alternating%20Characters/Solution.java) | +| Strings | [The Love-Letter Mystery](https://www.hackerrank.com/challenges/the-love-letter-mystery) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/The%20Love-Letter%20Mystery/Solution.java) | | Strings | [Making Anagrams](https://www.hackerrank.com/challenges/making-anagrams) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Strings/Making%20Anagrams/Solution.java) | -| Strings | [Game of Thrones - I](https://www.hackerrank.com/challenges/game-of-thrones) | Easy | Coming Soon! | -| Strings | [Two Strings](https://www.hackerrank.com/challenges/two-strings) | Easy | Coming Soon! | -| Strings | [String Construction](https://www.hackerrank.com/challenges/string-construction) | Easy | Coming Soon! | -| Strings | [Sherlock and Valid String](https://www.hackerrank.com/challenges/sherlock-and-valid-string) | Hard | Coming Soon! | -| Strings | [Richie Rich](https://www.hackerrank.com/challenges/richie-rich) | Medium | Coming Soon! | -| Strings | [Sherlock and Anagrams](https://www.hackerrank.com/challenges/sherlock-and-anagrams) | Medium | Coming Soon! | -| Strings | [Common Child](https://www.hackerrank.com/challenges/common-child) | Hard | Coming Soon! | -| Strings | [Bear and Steady Gene](https://www.hackerrank.com/challenges/bear-and-steady-gene) | Medium | Coming Soon! | -| Strings | [Morgan and a String](https://www.hackerrank.com/challenges/morgan-and-a-string) | Expert | Coming Soon! | -| Strings | [Count Strings](https://www.hackerrank.com/challenges/count-strings) | Hard | Coming Soon! | -| Strings | [String Function Calculation](https://www.hackerrank.com/challenges/string-function-calculation) | Advanced | Coming Soon! | -| Strings | [Build a Palindrome](https://www.hackerrank.com/challenges/challenging-palindromes) | Advanced | Coming Soon! | -| Strings | [Build a String](https://www.hackerrank.com/challenges/build-a-string) | Hard | Coming Soon! | -| Strings | [Gridland Provinces](https://www.hackerrank.com/challenges/gridland-provinces) | Hard | Coming Soon! | -| Strings | [Ashton and String](https://www.hackerrank.com/challenges/ashton-and-string) | Advanced | Coming Soon! | -| Strings | [String Similarity](https://www.hackerrank.com/challenges/string-similarity) | Expert | Coming Soon! | -| Strings | [Super Functional Strings](https://www.hackerrank.com/challenges/super-functional-strings) | Advanced | Coming Soon! | -| Strings | [Circular Palindromes](https://www.hackerrank.com/challenges/circular-palindromes) | Advanced | Coming Soon! | -| Strings | [Similar Strings](https://www.hackerrank.com/challenges/similar-strings) | Advanced | Coming Soon! | -| Strings | [Save Humanity](https://www.hackerrank.com/challenges/save-humanity) | Expert | Coming Soon! | -| Strings | [Find Strings](https://www.hackerrank.com/challenges/find-strings) | Expert | Coming Soon! | -| Strings | [Palindromic Border](https://www.hackerrank.com/challenges/palindromic-border) | Expert | Coming Soon! | -| Strings | [Two Two](https://www.hackerrank.com/challenges/two-two) | Advanced | Coming Soon! | -| Strings | [Two Strings Game](https://www.hackerrank.com/challenges/two-strings-game) | Expert | Coming Soon! | -| Strings | [Letter Islands](https://www.hackerrank.com/challenges/letter-islands) | Expert | Coming Soon! | -| Strings | [Pseudo-Isomorphic Substrings](https://www.hackerrank.com/challenges/pseudo-isomorphic-substrings) | Expert | Coming Soon! | | Sorting | [Intro to Tutorial Challenges](https://www.hackerrank.com/challenges/tutorial-intro) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Sorting/Intro%20to%20Tutorial%20Challenges/Solution.java) | | Sorting | [Insertion Sort - Part 1](https://www.hackerrank.com/challenges/insertionsort1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Sorting/Insertion%20Sort%20-%20Part%201/Solution.java) | | Sorting | [Insertion Sort - Part 2](https://www.hackerrank.com/challenges/insertionsort2) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Sorting/Insertion%20Sort%20-%20Part%202/Solution.java) | @@ -207,285 +153,48 @@ SQL solutions are coded using MySQL | Sorting | [Counting Sort 2](https://www.hackerrank.com/challenges/countingsort2) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Sorting/Counting%20Sort%202/Solution.java) | | Sorting | [Counting Sort 3](https://www.hackerrank.com/challenges/countingsort3) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Sorting/Counting%20Sort%203/Solution.java) | | Sorting | [The Full Counting Sort](https://www.hackerrank.com/challenges/countingsort4) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Sorting/The%20Full%20Counting%20Sort/Solution.java) | -| Sorting | [Closest Numbers](https://www.hackerrank.com/challenges/closest-numbers) | Easy | Coming Soon! | -| Sorting | [Find the Median](https://www.hackerrank.com/challenges/find-the-median) | Easy | Coming Soon! | -| Sorting | [Insertion Sort Advanced Analysis](https://www.hackerrank.com/challenges/insertion-sort) | Advanced | Coming Soon! | -| Sorting | [Fraudulent Activity Notifications](https://www.hackerrank.com/challenges/fraudulent-activity-notifications) | Medium | Coming Soon! | -| Sorting | [Lily's Homework](https://www.hackerrank.com/challenges/lilys-homework) | Medium | Coming Soon! | -| Search | [Hackerland Radio Transmitters](https://www.hackerrank.com/challenges/hackerland-radio-transmitters) | Easy | Coming Soon! | | Search | [Ice Cream Parlor](https://www.hackerrank.com/challenges/icecream-parlor) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Search/Ice%20Cream%20Parlor/Solution.java) | -| Search | [Gridland Metro](https://www.hackerrank.com/challenges/gridland-metro) | Medium | Coming Soon! | -| Search | [Missing Numbers](https://www.hackerrank.com/challenges/missing-numbers) | Easy | Coming Soon! | -| Search | [Pairs](https://www.hackerrank.com/challenges/pairs) | Medium | Coming Soon! | -| Search | [Sherlock and Array](https://www.hackerrank.com/challenges/sherlock-and-array) | Easy | Coming Soon! | -| Search | [Maximum Subarray Sum](https://www.hackerrank.com/challenges/maximum-subarray-sum) | Hard | Coming Soon! | | Search | [Connected Cells in a Grid](https://www.hackerrank.com/challenges/connected-cell-in-a-grid) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Search/Connected%20Cells%20in%20a%20Grid/Solution.java) | -| Search | [Short Palindrome](https://www.hackerrank.com/challenges/short-palindrome) | Medium | Coming Soon! | -| Search | [Count Luck](https://www.hackerrank.com/challenges/count-luck) | Medium | Coming Soon! | -| Search | [Cut the Tree](https://www.hackerrank.com/challenges/cut-the-tree) | Medium | Coming Soon! | -| Search | [Making Candies](https://www.hackerrank.com/challenges/making-candies) | Hard | Coming Soon! | -| Search | [Gene Playing Hanoi](https://www.hackerrank.com/challenges/gena) | Medium | Coming Soon! | -| Search | [Beautiful Quadruples](https://www.hackerrank.com/challenges/xor-quadruples) | Medium | Coming Soon! | -| Search | [Bike Racers](https://www.hackerrank.com/challenges/bike-racers) | Hard | Coming Soon! | -| Search | [Task Scheduling](https://www.hackerrank.com/challenges/task-scheduling) | Advanced | Coming Soon! | -| Search | [Similar Pair](https://www.hackerrank.com/challenges/similarpair) | Advanced | Coming Soon! | -| Search | [Absolute Element Sums](https://www.hackerrank.com/challenges/playing-with-numbers) | Hard | Coming Soon! | -| Search | [Sorted Subsegments](https://www.hackerrank.com/challenges/sorted-subsegments) | Hard | Coming Soon! | -| Search | [King Richard's Knights](https://www.hackerrank.com/challenges/king-richards-knights) | Hard | Coming Soon! | -| Graph Theory | [Journey to the Moon](https://www.hackerrank.com/challenges/journey-to-the-moon) | Medium | Coming Soon! | -| Graph Theory | [Synchronous Shopping](https://www.hackerrank.com/challenges/synchronous-shopping) | Medium | Coming Soon! | -| Graph Theory | [Subset Component](https://www.hackerrank.com/challenges/subset-component) | Hard | Coming Soon! | | Graph Theory | [Breadth First Search - Shortest Reach](https://www.hackerrank.com/challenges/bfsshortreach) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Graph%20Theory/Breadth%20First%20Search%20-%20Shortest%20Reach/Solution.java) | -| Graph Theory | [Kruskal (MST) - Really Special Subtree](https://www.hackerrank.com/challenges/kruskalmstrsub) | Hard | Coming Soon! | -| Graph Theory | [Even Tree](https://www.hackerrank.com/challenges/even-tree) | Medium | Coming Soon! | -| Graph Theory | [Snakes and Ladders - The Quickest Way Up](https://www.hackerrank.com/challenges/the-quickest-way-up) | Medium | Coming Soon! | -| Graph Theory | [Dijkstra - Shortest Reach 2](https://www.hackerrank.com/challenges/dijkstrashortreach) | Hard | Coming Soon! | -| Graph Theory | [Prim's (MST) - Special Subtree](https://www.hackerrank.com/challenges/primsmstsub) | Medium | Coming Soon! | -| Graph Theory | [Clique](https://www.hackerrank.com/challenges/clique) | Medium | Coming Soon! | -| Graph Theory | [Minimum Penalty Path](https://www.hackerrank.com/challenges/beautiful-path) | Medium | Coming Soon! | -| Graph Theory | [Demanding Money](https://www.hackerrank.com/challenges/borrowing-money) | Hard | Coming Soon! | -| Graph Theory | [Jack goes to Rapture](https://www.hackerrank.com/challenges/jack-goes-to-rapture) | Medium | Coming Soon! | -| Graph Theory | [Crab Graphs](https://www.hackerrank.com/challenges/crab-graphs) | Medium | Coming Soon! | -| Graph Theory | [Bead Ornaments](https://www.hackerrank.com/challenges/beadornaments) | Advanced | Coming Soon! | -| Graph Theory | [Jeanie's Route](https://www.hackerrank.com/challenges/jeanies-route) | Medium | Coming Soon! | -| Graph Theory | [Floyd - City of Blinding Lights](https://www.hackerrank.com/challenges/floyd-city-of-blinding-lights) | Hard | Coming Soon! | -| Graph Theory | [Roads in HackerLand](https://www.hackerrank.com/challenges/johnland) | Medium | Coming Soon! | -| Graph Theory | [Kingdom Connectivity](https://www.hackerrank.com/challenges/kingdom-connectivity) | Hard | Coming Soon! | -| Graph Theory | [Computer Game](https://www.hackerrank.com/challenges/computer-game) | Hard | Coming Soon! | -| Graph Theory | [Rust & Murderer](https://www.hackerrank.com/challenges/rust-murderer) | Medium | Coming Soon! | -| Graph Theory | [Problem solving](https://www.hackerrank.com/challenges/problem-solving) | Hard | Coming Soon! | -| Graph Theory | [Journey Scheduling](https://www.hackerrank.com/challenges/journey-scheduling) | Hard | Coming Soon! | -| Graph Theory | [Matrix](https://www.hackerrank.com/challenges/matrix) | Hard | Coming Soon! | -| Graph Theory | [Recording Episodes](https://www.hackerrank.com/challenges/episode-recording) | Hard | Coming Soon! | -| Graph Theory | [Repair Roads](https://www.hackerrank.com/challenges/repair-roads) | Hard | Coming Soon! | -| Graph Theory | [Kth Ancestor](https://www.hackerrank.com/challenges/kth-ancestor) | Hard | Coming Soon! | -| Graph Theory | [ByteLandian Tours](https://www.hackerrank.com/challenges/bytelandian-tours) | Hard | Coming Soon! | -| Graph Theory | [Find the Path](https://www.hackerrank.com/challenges/shortest-path) | Hard | Coming Soon! | -| Graph Theory | [Savita And Friends](https://www.hackerrank.com/challenges/savita-and-friends) | Hard | Coming Soon! | -| Graph Theory | [Liars](https://www.hackerrank.com/challenges/liars) | Advanced | Coming Soon! | -| Graph Theory | [Jumping Rooks](https://www.hackerrank.com/challenges/jumping-rooks) | Advanced | Coming Soon! | -| Graph Theory | [Tripartite Matching](https://www.hackerrank.com/challenges/tripartite-matching) | Hard | Coming Soon! | -| Graph Theory | [Tree Flow](https://www.hackerrank.com/challenges/tree-flow) | Hard | Coming Soon! | -| Graph Theory | [DAG Queries](https://www.hackerrank.com/challenges/dag-queries) | Expert | Coming Soon! | -| Graph Theory | [Favorite sequence](https://www.hackerrank.com/challenges/favourite-sequence) | Advanced | Coming Soon! | -| Graph Theory | [Jogging Cats](https://www.hackerrank.com/challenges/cat-jogging) | Advanced | Coming Soon! | -| Graph Theory | [Quadrant Queries](https://www.hackerrank.com/challenges/quadrant-queries) | Advanced | Coming Soon! | -| Graph Theory | [Hacker Country](https://www.hackerrank.com/challenges/hacker-country) | Hard | Coming Soon! | -| Graph Theory | [HackerX](https://www.hackerrank.com/challenges/missile-defend) | Hard | Coming Soon! | -| Graph Theory | [Huarongdao](https://www.hackerrank.com/challenges/huarongdao) | Expert | Coming Soon! | -| Graph Theory | [Training the army](https://www.hackerrank.com/challenges/training-the-army) | Hard | Coming Soon! | -| Graph Theory | [Jim and his LAN Party](https://www.hackerrank.com/challenges/jim-and-his-lan-party) | Hard | Coming Soon! | -| Graph Theory | [Travel in HackerLand](https://www.hackerrank.com/challenges/travel-in-hackerland) | Hard | Coming Soon! | -| Graph Theory | [Alex vs Fedor](https://www.hackerrank.com/challenges/alex-vs-fedor) | Expert | Coming Soon! | -| Graph Theory | [Vertical Paths](https://www.hackerrank.com/challenges/vertical-paths) | Expert | Coming Soon! | -| Graph Theory | [Drive](https://www.hackerrank.com/challenges/drive) | Expert | Coming Soon! | -| Graph Theory | [Travelling Salesman in a Grid](https://www.hackerrank.com/challenges/tsp-grid) | Expert | Coming Soon! | -| Graph Theory | [Road Network](https://www.hackerrank.com/challenges/road-network) | Expert | Coming Soon! | -| Graph Theory | [Going to the Office](https://www.hackerrank.com/challenges/going-office) | Expert | Coming Soon! | -| Graph Theory | [Tree Splitting](https://www.hackerrank.com/challenges/tree-splitting) | Advanced | Coming Soon! | -| Graph Theory | [Ticket](https://www.hackerrank.com/challenges/ticket) | Expert | Coming Soon! | | Greedy | [Minimum Absolute Difference in an Array](https://www.hackerrank.com/challenges/minimum-absolute-difference-in-an-array) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Greedy/Minimum%20Absolute%20Difference%20in%20an%20Array/Solution.java) | | Greedy | [Marc's Cakewalk](https://www.hackerrank.com/challenges/marcs-cakewalk) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Greedy/Marc%27s%20Cakewalk/Solution.java) | | Greedy | [Grid Challenge](https://www.hackerrank.com/challenges/grid-challenge) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Greedy/Grid%20Challenge/Solution.java) | | Greedy | [Luck Balance](https://www.hackerrank.com/challenges/luck-balance) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Greedy/Luck%20Balance/Solution.java) | | Greedy | [Maximum Perimeter Triangle](https://www.hackerrank.com/challenges/maximum-perimeter-triangle) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Greedy/Maximum%20Perimeter%20Triangle/Solution.java) | | Greedy | [Beautiful Pairs](https://www.hackerrank.com/challenges/beautiful-pairs) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Greedy/Beautiful%20Pairs/Solution.java) | -| Greedy | [Sherlock and The Beast](https://www.hackerrank.com/challenges/sherlock-and-the-beast) | Easy | Coming Soon! | -| Greedy | [Priyanka and Toys](https://www.hackerrank.com/challenges/priyanka-and-toys) | Easy | Coming Soon! | -| Greedy | [Largest Permutation](https://www.hackerrank.com/challenges/largest-permutation) | Easy | Coming Soon! | -| Greedy | [Mark and Toys](https://www.hackerrank.com/challenges/mark-and-toys) | Easy | Coming Soon! | -| Greedy | [Greedy Florist](https://www.hackerrank.com/challenges/greedy-florist) | Medium | Coming Soon! | -| Greedy | [Max Min](https://www.hackerrank.com/challenges/angry-children) | Medium | Coming Soon! | -| Greedy | [Jim and the Orders](https://www.hackerrank.com/challenges/jim-and-the-orders) | Easy | Coming Soon! | -| Greedy | [Permuting Two Arrays](https://www.hackerrank.com/challenges/two-arrays) | Easy | Coming Soon! | -| Greedy | [Cutting Boards](https://www.hackerrank.com/challenges/board-cutting) | Hard | Coming Soon! | -| Greedy | [Reverse Shuffle Merge](https://www.hackerrank.com/challenges/reverse-shuffle-merge) | Advanced | Coming Soon! | -| Greedy | [Goodland Electricity](https://www.hackerrank.com/challenges/pylons) | Medium | Coming Soon! | -| Greedy | [Chief Hopper](https://www.hackerrank.com/challenges/chief-hopper) | Hard | Coming Soon! | -| Greedy | [Sherlock and MiniMax](https://www.hackerrank.com/challenges/sherlock-and-minimax) | Hard | Coming Soon! | -| Greedy | [Accessory Collection](https://www.hackerrank.com/challenges/accessory-collection) | Hard | Coming Soon! | -| Greedy | [Team Formation](https://www.hackerrank.com/challenges/team-formation) | Advanced | Coming Soon! | -| Greedy | [Fighting Pits](https://www.hackerrank.com/challenges/fighting-pits) | Hard | Coming Soon! | | Dynamic Programming | [The Coin Change Problem](https://www.hackerrank.com/challenges/coin-change) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Dynamic%20Programming/The%20Coin%20Change%20Problem/Solution.java) | -| Dynamic Programming | [Equal](https://www.hackerrank.com/challenges/equal) | Medium | Coming Soon! | -| Dynamic Programming | [Sherlock and Cost](https://www.hackerrank.com/challenges/sherlock-and-cost) | Medium | Coming Soon! | -| Dynamic Programming | [Vertical Sticks](https://www.hackerrank.com/challenges/vertical-sticks) | Medium | Coming Soon! | -| Dynamic Programming | [Candies](https://www.hackerrank.com/challenges/candies) | Medium | Coming Soon! | -| Dynamic Programming | [Angry Children 2](https://www.hackerrank.com/challenges/angry-children-2) | Hard | Coming Soon! | -| Dynamic Programming | [Sam and sub-strings](https://www.hackerrank.com/challenges/sam-and-substrings) | Medium | Coming Soon! | -| Dynamic Programming | [Fibonacci Modified](https://www.hackerrank.com/challenges/fibonacci-modified) | Medium | Coming Soon! | -| Dynamic Programming | [Abbreviation](https://www.hackerrank.com/challenges/abbr) | Medium | Coming Soon! | -| Dynamic Programming | [The Maximum Subarray](https://www.hackerrank.com/challenges/maxsubarray) | Medium | Coming Soon! | -| Dynamic Programming | [Fair Cut](https://www.hackerrank.com/challenges/fair-cut) | Medium | Coming Soon! | -| Dynamic Programming | [HackerRank City](https://www.hackerrank.com/challenges/hr-city) | Medium | Coming Soon! | -| Dynamic Programming | [Summing Pieces](https://www.hackerrank.com/challenges/summing-pieces) | Medium | Coming Soon! | -| Dynamic Programming | [Mr K marsh](https://www.hackerrank.com/challenges/mr-k-marsh) | Medium | Coming Soon! | -| Dynamic Programming | [Substring Diff](https://www.hackerrank.com/challenges/substring-diff) | Medium | Coming Soon! | -| Dynamic Programming | [Xor and Sum](https://www.hackerrank.com/challenges/xor-and-sum) | Medium | Coming Soon! | -| Dynamic Programming | [Lego Blocks](https://www.hackerrank.com/challenges/lego-blocks) | Medium | Coming Soon! | -| Dynamic Programming | [Brick Tiling](https://www.hackerrank.com/challenges/brick-tiling) | Hard | Coming Soon! | -| Dynamic Programming | [Alien Languages](https://www.hackerrank.com/challenges/alien-languages) | Hard | Coming Soon! | -| Dynamic Programming | [Stock Maximize](https://www.hackerrank.com/challenges/stockmax) | Medium | Coming Soon! | -| Dynamic Programming | [Two Robots](https://www.hackerrank.com/challenges/two-robots) | Medium | Coming Soon! | -| Dynamic Programming | [Cut Tree](https://www.hackerrank.com/challenges/cuttree) | Medium | Coming Soon! | -| Dynamic Programming | [Wet Shark and Two Subsequences](https://www.hackerrank.com/challenges/wet-shark-and-two-subsequences) | Medium | Coming Soon! | -| Dynamic Programming | [Nikita and the Game](https://www.hackerrank.com/challenges/array-splitting) | Medium | Coming Soon! | -| Dynamic Programming | [Mandragora Forest](https://www.hackerrank.com/challenges/mandragora) | Medium | Coming Soon! | -| Dynamic Programming | [Red John is Back](https://www.hackerrank.com/challenges/red-john-is-back) | Medium | Coming Soon! | -| Dynamic Programming | [LCS Returns](https://www.hackerrank.com/challenges/tutzki-and-lcs) | Medium | Coming Soon! | -| Dynamic Programming | [Grid Walking](https://www.hackerrank.com/challenges/grid-walking) | Medium | Coming Soon! | -| Dynamic Programming | [Knapsack](https://www.hackerrank.com/challenges/unbounded-knapsack) | Medium | Coming Soon! | -| Dynamic Programming | [Bricks Game](https://www.hackerrank.com/challenges/play-game) | Medium | Coming Soon! | -| Dynamic Programming | [The Longest Increasing Subsequence](https://www.hackerrank.com/challenges/longest-increasing-subsequent) | Advanced | Coming Soon! | -| Dynamic Programming | [Coin on the Table](https://www.hackerrank.com/challenges/coin-on-the-table) | Medium | Coming Soon! | -| Dynamic Programming | [The Longest Common Subsequence](https://www.hackerrank.com/challenges/dynamic-programming-classics-the-longest-common-subsequence) | Medium | Coming Soon! | -| Dynamic Programming | [Play with words](https://www.hackerrank.com/challenges/strplay) | Medium | Coming Soon! | -| Dynamic Programming | [Black and White Tree](https://www.hackerrank.com/challenges/black-n-white-tree-1) | Hard | Coming Soon! | -| Dynamic Programming | [Counting Special Sub-Cubes](https://www.hackerrank.com/challenges/counting-special-sub-cubes) | Medium | Coming Soon! | -| Dynamic Programming | [Interval Selection](https://www.hackerrank.com/challenges/interval-selection) | Medium | Coming Soon! | -| Dynamic Programming | [String Reduction](https://www.hackerrank.com/challenges/string-reduction) | Hard | Coming Soon! | -| Dynamic Programming | [Far Vertices](https://www.hackerrank.com/challenges/far-vertices) | Hard | Coming Soon! | -| Dynamic Programming | [Superman Celebrates Diwali](https://www.hackerrank.com/challenges/superman-celebrates-diwali) | Hard | Coming Soon! | -| Dynamic Programming | [Hexagonal Grid](https://www.hackerrank.com/challenges/hexagonal-grid) | Medium | Coming Soon! | -| Dynamic Programming | [Queens on Board](https://www.hackerrank.com/challenges/queens-on-board) | Hard | Coming Soon! | -| Dynamic Programming | [Shashank and the Palindromic Strings](https://www.hackerrank.com/challenges/shashank-and-palindromic-strings) | Advanced | Coming Soon! | -| Dynamic Programming | [Points in a Plane](https://www.hackerrank.com/challenges/points-in-a-plane) | Advanced | Coming Soon! | -| Dynamic Programming | [The Indian Job](https://www.hackerrank.com/challenges/the-indian-job) | Medium | Coming Soon! | -| Dynamic Programming | [Requirement](https://www.hackerrank.com/challenges/requirement) | Advanced | Coming Soon! | -| Dynamic Programming | [A Super Hero](https://www.hackerrank.com/challenges/a-super-hero) | Hard | Coming Soon! | -| Dynamic Programming | [Clues on a Binary Path](https://www.hackerrank.com/challenges/clues-on-a-binary-path) | Hard | Coming Soon! | -| Dynamic Programming | [Road Maintenance](https://www.hackerrank.com/challenges/road-maintenance) | Hard | Coming Soon! | -| Dynamic Programming | [Billboards](https://www.hackerrank.com/challenges/billboards) | Advanced | Coming Soon! | -| Dynamic Programming | [Beautiful Strings](https://www.hackerrank.com/challenges/beautiful-string) | Hard | Coming Soon! | -| Dynamic Programming | [Covering the stains](https://www.hackerrank.com/challenges/covering-the-stains) | Hard | Coming Soon! | -| Dynamic Programming | [Fairy Chess](https://www.hackerrank.com/challenges/fairy-chess) | Advanced | Coming Soon! | -| Dynamic Programming | [Travel around the world](https://www.hackerrank.com/challenges/travel-around-the-world) | Medium | Coming Soon! | -| Dynamic Programming | [New Year Present](https://www.hackerrank.com/challenges/newyear-present) | Hard | Coming Soon! | -| Dynamic Programming | [Longest Palindromic Subsequence](https://www.hackerrank.com/challenges/longest-palindromic-subsequence) | Hard | Coming Soon! | -| Dynamic Programming | [Candles Counting](https://www.hackerrank.com/challenges/candles-2) | Medium | Coming Soon! | -| Dynamic Programming | [Hyper Strings](https://www.hackerrank.com/challenges/hyper-strings) | Advanced | Coming Soon! | -| Dynamic Programming | [Swap Permutation](https://www.hackerrank.com/challenges/swappermutation) | Medium | Coming Soon! | -| Dynamic Programming | [Extremum Permutations](https://www.hackerrank.com/challenges/extremum-permutations) | Medium | Coming Soon! | -| Dynamic Programming | [Square Subsequences](https://www.hackerrank.com/challenges/square-subsequences) | Hard | Coming Soon! | -| Dynamic Programming | [Dorsey Thief](https://www.hackerrank.com/challenges/dorsey-thief) | Advanced | Coming Soon! | -| Dynamic Programming | [Mining](https://www.hackerrank.com/challenges/mining) | Advanced | Coming Soon! | -| Dynamic Programming | [Police Operation](https://www.hackerrank.com/challenges/police-operation) | Hard | Coming Soon! | -| Dynamic Programming | [Zurikela's Graph](https://www.hackerrank.com/challenges/zurikela) | Hard | Coming Soon! | -| Dynamic Programming | [Modify The Sequence](https://www.hackerrank.com/challenges/modify-the-sequence) | Advanced | Coming Soon! | -| Dynamic Programming | [Longest Mod Path](https://www.hackerrank.com/challenges/longest-mod-path) | Hard | Coming Soon! | -| Dynamic Programming | [P-sequences](https://www.hackerrank.com/challenges/p-sequences) | Hard | Coming Soon! | -| Dynamic Programming | [Robot](https://www.hackerrank.com/challenges/robot) | Advanced | Coming Soon! | -| Dynamic Programming | [Lucky Numbers](https://www.hackerrank.com/challenges/lucky-numbers) | Expert | Coming Soon! | -| Dynamic Programming | [Unfair Game](https://www.hackerrank.com/challenges/unfair-game) | Advanced | Coming Soon! | -| Dynamic Programming | [Oil Well](https://www.hackerrank.com/challenges/oil-well) | Hard | Coming Soon! | -| Dynamic Programming | [Find the Seed](https://www.hackerrank.com/challenges/find-the-seed) | Advanced | Coming Soon! | -| Dynamic Programming | [The Blacklist](https://www.hackerrank.com/challenges/the-blacklist) | Advanced | Coming Soon! | -| Dynamic Programming | [Tree Pruning](https://www.hackerrank.com/challenges/tree-pruning) | Advanced | Coming Soon! | -| Dynamic Programming | [Ones and Twos](https://www.hackerrank.com/challenges/ones-and-twos) | Hard | Coming Soon! | -| Dynamic Programming | [Count Scorecards](https://www.hackerrank.com/challenges/count-scorecards) | Expert | Coming Soon! | -| Dynamic Programming | [Vim War](https://www.hackerrank.com/challenges/vim-war) | Advanced | Coming Soon! | -| Dynamic Programming | [Best spot](https://www.hackerrank.com/challenges/best-spot) | Advanced | Coming Soon! | -| Dynamic Programming | [Divisible Numbers](https://www.hackerrank.com/challenges/divisible-numbers) | Expert | Coming Soon! | -| Dynamic Programming | [Unique Divide And Conquer](https://www.hackerrank.com/challenges/unique-divide-and-conquer) | Advanced | Coming Soon! | -| Dynamic Programming | [King and Four Sons](https://www.hackerrank.com/challenges/happy-king) | Expert | Coming Soon! | -| Dynamic Programming | [Dortmund Dilemma](https://www.hackerrank.com/challenges/dortmund-dilemma) | Advanced | Coming Soon! | -| Dynamic Programming | [Super Kth LIS](https://www.hackerrank.com/challenges/super-kth-lis) | Advanced | Coming Soon! | -| Dynamic Programming | [Counting the Ways](https://www.hackerrank.com/challenges/count-ways-1) | Expert | Coming Soon! | -| Dynamic Programming | [Hard Disk Drives](https://www.hackerrank.com/challenges/hard-drive-disks) | Expert | Coming Soon! | -| Dynamic Programming | [Separate the chocolate](https://www.hackerrank.com/challenges/separate-the-chocolate) | Expert | Coming Soon! | -| Constructive Algorithms | [Flipping the Matrix](https://www.hackerrank.com/challenges/flipping-the-matrix) | Medium | Coming Soon! | -| Constructive Algorithms | [New Year Chaos](https://www.hackerrank.com/challenges/new-year-chaos) | Medium | Coming Soon! | -| Constructive Algorithms | [Bonetrousle](https://www.hackerrank.com/challenges/bonetrousle) | Medium | Coming Soon! | -| Constructive Algorithms | [Yet Another KMP Problem](https://www.hackerrank.com/challenges/kmp-problem) | Hard | Coming Soon! | -| Constructive Algorithms | [Beautiful 3 Set](https://www.hackerrank.com/challenges/beautiful-3-set) | Hard | Coming Soon! | -| Constructive Algorithms | [Inverse RMQ](https://www.hackerrank.com/challenges/inverse-rmq) | Hard | Coming Soon! | -| Constructive Algorithms | [Lovely Triplets](https://www.hackerrank.com/challenges/lovely-triplets) | Advanced | Coming Soon! | -| Constructive Algorithms | [Array Construction](https://www.hackerrank.com/challenges/array-construction) | Advanced | Coming Soon! | | Bit Manipulation | [Lonely Integer](https://www.hackerrank.com/challenges/lonely-integer) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Bit%20Manipulation/Lonely%20Integer/Solution.java) | -| Bit Manipulation | [Maximizing XOR](https://www.hackerrank.com/challenges/maximizing-xor) | Easy | Coming Soon! | -| Bit Manipulation | [Counter game](https://www.hackerrank.com/challenges/counter-game) | Medium | Coming Soon! | -| Bit Manipulation | [Xor-sequence](https://www.hackerrank.com/challenges/xor-se) | Medium | Coming Soon! | -| Bit Manipulation | [Sum vs XOR](https://www.hackerrank.com/challenges/sum-vs-xor) | Easy | Coming Soon! | -| Bit Manipulation | [Flipping bits](https://www.hackerrank.com/challenges/flipping-bits) | Easy | Coming Soon! | -| Bit Manipulation | [Yet Another Minimax Problem](https://www.hackerrank.com/challenges/yet-another-minimax-problem) | Medium | Coming Soon! | -| Bit Manipulation | [Sansa and XOR](https://www.hackerrank.com/challenges/sansa-and-xor) | Medium | Coming Soon! | -| Bit Manipulation | [AND Product](https://www.hackerrank.com/challenges/and-product) | Medium | Coming Soon! | -| Bit Manipulation | [Xoring Ninja](https://www.hackerrank.com/challenges/xoring-ninja) | Hard | Coming Soon! | -| Bit Manipulation | [Cipher](https://www.hackerrank.com/challenges/cipher) | Medium | Coming Soon! | -| Bit Manipulation | [XOR Matrix](https://www.hackerrank.com/challenges/xor-matrix) | Hard | Coming Soon! | -| Bit Manipulation | [What's Next](https://www.hackerrank.com/challenges/whats-next) | Medium | Coming Soon! | -| Bit Manipulation | [String Transmission](https://www.hackerrank.com/challenges/string-transmission) | Hard | Coming Soon! | -| Bit Manipulation | [A or B](https://www.hackerrank.com/challenges/aorb) | Medium | Coming Soon! | -| Bit Manipulation | [Manipulative Numbers](https://www.hackerrank.com/challenges/manipulative-numbers) | Hard | Coming Soon! | -| Bit Manipulation | [Stone game](https://www.hackerrank.com/challenges/stonegame) | Hard | Coming Soon! | -| Bit Manipulation | [2's complement](https://www.hackerrank.com/challenges/2s-complement) | Advanced | Coming Soon! | -| Bit Manipulation | [Changing Bits](https://www.hackerrank.com/challenges/changing-bits) | Advanced | Coming Soon! | -| Bit Manipulation | [XOR key](https://www.hackerrank.com/challenges/xor-key) | Advanced | Coming Soon! | -| Bit Manipulation | [Maximizing the Function](https://www.hackerrank.com/challenges/maximizing-the-function) | Hard | Coming Soon! | -| Bit Manipulation | [XOR Subsequences](https://www.hackerrank.com/challenges/xor-subsequence) | Advanced | Coming Soon! | -| Bit Manipulation | [Iterate It](https://www.hackerrank.com/challenges/iterate-it) | Expert | Coming Soon! | -| Bit Manipulation | [Hamming Distance](https://www.hackerrank.com/challenges/hamming-distance) | Expert | Coming Soon! | -| Bit Manipulation | [Mixing proteins](https://www.hackerrank.com/challenges/pmix) | Hard | Coming Soon! | -| Recursion | [Simplified Chess Engine](https://www.hackerrank.com/challenges/simplified-chess-engine) | Medium | Coming Soon! | -| Recursion | [Repetitive K-Sums](https://www.hackerrank.com/challenges/repeat-k-sums) | Advanced | Coming Soon! | -| Game Theory | [Game of Stones](https://www.hackerrank.com/challenges/game-of-stones-1) | Easy | Coming Soon! | -| Game Theory | [Tower Breakers](https://www.hackerrank.com/challenges/tower-breakers-1) | Easy | Coming Soon! | -| Game Theory | [A Chessboard Game](https://www.hackerrank.com/challenges/a-chessboard-game-1) | Easy | Coming Soon! | -| Game Theory | [Introduction to Nim Game](https://www.hackerrank.com/challenges/nim-game-1) | Easy | Coming Soon! | -| Game Theory | [Misere Nim](https://www.hackerrank.com/challenges/misere-nim-1) | Easy | Coming Soon! | -| Game Theory | [Nimble Game](https://www.hackerrank.com/challenges/nimble-game-1) | Easy | Coming Soon! | -| Game Theory | [Poker Nim](https://www.hackerrank.com/challenges/poker-nim-1) | Easy | Coming Soon! | -| Game Theory | [Tower Breakers, Revisited!](https://www.hackerrank.com/challenges/tower-breakers-revisited-1) | Medium | Coming Soon! | -| Game Theory | [Tower Breakers, Again!](https://www.hackerrank.com/challenges/tower-breakers-again-1) | Medium | Coming Soon! | -| Game Theory | [Chessboard Game, Again!](https://www.hackerrank.com/challenges/chessboard-game-again-1) | Medium | Coming Soon! | -| Game Theory | [Digits Square Board](https://www.hackerrank.com/challenges/digits-square-board-1) | Medium | Coming Soon! | -| Game Theory | [Fun Game](https://www.hackerrank.com/challenges/fun-game-1) | Medium | Coming Soon! | -| Game Theory | [Stone Division](https://www.hackerrank.com/challenges/stone-division) | Hard | Coming Soon! | -| Game Theory | [Chocolate in Box](https://www.hackerrank.com/challenges/chocolate-in-box) | Medium | Coming Soon! | -| Game Theory | [Kitty and Katty](https://www.hackerrank.com/challenges/kitty-and-katty) | Medium | Coming Soon! | -| Game Theory | [Powers Game](https://www.hackerrank.com/challenges/powers-game-1) | Medium | Coming Soon! | -| Game Theory | [Deforestation](https://www.hackerrank.com/challenges/deforestation-1) | Medium | Coming Soon! | -| Game Theory | [Bob and Ben](https://www.hackerrank.com/challenges/bob-and-ben) | Medium | Coming Soon! | -| Game Theory | [Tower Breakers - The Final Battle](https://www.hackerrank.com/challenges/tower-breakers-the-final-battle-1) | Medium | Coming Soon! | -| Game Theory | [Simple Game](https://www.hackerrank.com/challenges/simple-game) | Hard | Coming Soon! | -| Game Theory | [Permutation game](https://www.hackerrank.com/challenges/permutation-game) | Medium | Coming Soon! | -| Game Theory | [Move the Coins](https://www.hackerrank.com/challenges/move-the-coins) | Hard | Coming Soon! | -| Game Theory | [Play on benders](https://www.hackerrank.com/challenges/benders-play) | Medium | Coming Soon! | -| Game Theory | [New Year Game](https://www.hackerrank.com/challenges/newyear-game) | Medium | Coming Soon! | -| Game Theory | [Stone Piles](https://www.hackerrank.com/challenges/stone-piles) | Hard | Coming Soon! | -| Game Theory | [Chocolate Game](https://www.hackerrank.com/challenges/chocolate-game) | Hard | Coming Soon! | -| Game Theory | [Manasa and Prime game](https://www.hackerrank.com/challenges/manasa-and-prime-game) | Hard | Coming Soon! | -| Game Theory | [Vertical Rooks](https://www.hackerrank.com/challenges/vertical-rooks) | Medium | Coming Soon! | -| Game Theory | [A stones game](https://www.hackerrank.com/challenges/half) | Medium | Coming Soon! | -| NP Complete | [Walking the Approximate Longest Path](https://www.hackerrank.com/challenges/walking-the-approximate-longest-path) | Hard | Coming Soon! | -| NP Complete | [Spies, Revisited](https://www.hackerrank.com/challenges/spies-revised) | Expert | Coming Soon! | -| NP Complete | [TBS Problem](https://www.hackerrank.com/challenges/tbsp) | Expert | Coming Soon! | +| Bit Manipulation | [Bit Manipulation: Lonely Integer](https://www.hackerrank.com/challenges/lonely-integer) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Bit%20Manipulation/Bit%20Manipulation%20-%20Lonely%20Integer/Solution.java) | +| Bit Manipulation | [Maximizing XOR](https://www.hackerrank.com/challenges/maximizing-xor) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Bit%20Manipulation/Maximizing%20XOR/Solution.java) | +| Bit Manipulation | [Counter game](https://www.hackerrank.com/challenges/counter-game) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Bit%20Manipulation/Counter%20game/Solution.java) | +| Bit Manipulation | [Sum vs XOR](https://www.hackerrank.com/challenges/sum-vs-xor) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Bit%20Manipulation/Sum%20vs%20XOR/Solution.java) | +| Bit Manipulation | [Sansa and XOR](https://www.hackerrank.com/challenges/sansa-and-xor) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Algorithms/Bit%20Manipulation/Sansa%20and%20XOR/Solution.java) | # Cracking the Coding Interview -| Topic | Challenge | Difficulty | Solution | -|:---------------------:|:--------------------------------------------------------------------------------------------------------:|:----------:|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| -| Data Structures | [Arrays: Left Rotation](https://www.hackerrank.com/challenges/ctci-array-left-rotation) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Arrays%20-%20Left%20Rotation/Solution.java) | -| Data Structures | [Strings: Making Anagrams](https://www.hackerrank.com/challenges/ctci-making-anagrams) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Strings%20-%20Making%20Anagrams/Solution.java) | -| Data Structures | [Hash Tables: Ransom Note](https://www.hackerrank.com/challenges/ctci-ransom-note) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Hash%20Tables%20-%20Ransom%20Note/Solution.java) | -| Data Structures | [Linked Lists: Detect a Cycle](https://www.hackerrank.com/challenges/ctci-linked-list-cycle) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Linked%20Lists%20-%20Detect%20a%20Cycle/Solution.java) | -| Data Structures | [Stacks: Balanced Brackets](https://www.hackerrank.com/challenges/ctci-balanced-brackets) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Stacks%20-%20Balanced%20Brackets/Solution.java) | -| Data Structures | [Queues: A Tale of Two Stacks](https://www.hackerrank.com/challenges/ctci-queue-using-two-stacks) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Queue%20-%20A%20Tale%20of%20Two%20Stacks/Solution.java) | -| Data Structures | [Trees: Is This a Binary Search Tree?](https://www.hackerrank.com/challenges/ctci-is-binary-search-tree) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Trees%20-%20Is%20This%20a%20Binary%20Search%20Tree/Solution.java) | -| Data Structures | [Heaps: Find the Running Median](https://www.hackerrank.com/challenges/ctci-find-the-running-median) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Heaps%20-%20Find%20the%20Running%20Median/Solution.java) | -| Data Structures | [Tries: Contacts](https://www.hackerrank.com/challenges/ctci-contacts) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Tries%20-%20Contacts/Solution.java) | -| Algorithms | [Sorting: Bubble Sort](https://www.hackerrank.com/challenges/ctci-bubble-sort) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/Sorting%20-%20Bubble%20Sort/Solution.java) | -| Algorithms | [Sorting: Comparator](https://www.hackerrank.com/challenges/ctci-comparator-sorting) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/Sorting%20-%20Comparator/Solution.java) | -| Algorithms | [Merge Sort: Counting Inversions](https://www.hackerrank.com/challenges/ctci-merge-sort) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/Merge%20Sort%20-%20Counting%20Inversions/Solution.java) | -| Algorithms | [Binary Search: Ice Cream Parlor](https://www.hackerrank.com/challenges/ctci-ice-cream-parlor) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/Binary%20Search%20-%20Ice%20Cream%20Parlor/Solution.java) | -| Algorithms | [DFS: Connected Cell in a Grid](https://www.hackerrank.com/challenges/ctci-connected-cell-in-a-grid) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/DFS%20-%20Connected%20Cell%20in%20a%20Grid/Solution.java) | -| Algorithms | [BFS: Shortest Reach in a Graph](https://www.hackerrank.com/challenges/ctci-bfs-shortest-reach) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/BFS%20-%20Shortest%20Reach%20in%20a%20Graph/Solution.java) | -| Techniques / Concepts | [Time Complexity: Primality](https://www.hackerrank.com/challenges/ctci-big-o) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/Time%20Complexity%20-%20Primality/Solution.java) | -| Techniques / Concepts | [Recrusion: Fibonacci Numbers](https://www.hackerrank.com/challenges/ctci-fibonacci-numbers) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/Recursion%20-%20Fibonacci%20Numbers/Solution.java) | -| Techniques / Concepts | [Recursion: Davis' Staircase](https://www.hackerrank.com/challenges/ctci-recursive-staircase) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/Recursion%20-%20Davis'%20Staircase/Solution.java) | -| Techniques / Concepts | [DP: Coin Change](https://www.hackerrank.com/challenges/ctci-coin-change) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/DP%20-%20Coin%20Change/Solution.java) | -| Techniques / Concepts | [Bit Manipulation: Lonely Integer](https://www.hackerrank.com/challenges/ctci-lonely-integer) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/Bit%20Manipulation%20-%20Lonely%20Integer/Solution.java) | +| Topic | Challenge | Points | Solution | +|:---------------------:|:--------------------------------------------------------------------------------------------------------:|:------:|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| +| Data Structures | [Arrays: Left Rotation](https://www.hackerrank.com/challenges/ctci-array-left-rotation) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Arrays%20-%20Left%20Rotation/Solution.java) | +| Data Structures | [Strings: Making Anagrams](https://www.hackerrank.com/challenges/ctci-making-anagrams) | 25 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Strings%20-%20Making%20Anagrams/Solution.java) | +| Data Structures | [Hash Tables: Ransom Note](https://www.hackerrank.com/challenges/ctci-ransom-note) | 25 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Hash%20Tables%20-%20Ransom%20Note/Solution.java) | +| Data Structures | [Linked Lists: Detect a Cycle](https://www.hackerrank.com/challenges/ctci-linked-list-cycle) | 25 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Linked%20Lists%20-%20Detect%20a%20Cycle/Solution.java) | +| Data Structures | [Stacks: Balanced Brackets](https://www.hackerrank.com/challenges/ctci-balanced-brackets) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Stacks%20-%20Balanced%20Brackets/Solution.java) | +| Data Structures | [Queues: A Tale of Two Stacks](https://www.hackerrank.com/challenges/ctci-queue-using-two-stacks) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Queue%20-%20A%20Tale%20of%20Two%20Stacks/Solution.java) | +| Data Structures | [Trees: Is This a Binary Search Tree?](https://www.hackerrank.com/challenges/ctci-is-binary-search-tree) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Trees%20-%20Is%20This%20a%20Binary%20Search%20Tree/Solution.java) | +| Data Structures | [Heaps: Find the Running Median](https://www.hackerrank.com/challenges/ctci-find-the-running-median) | 50 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Heaps%20-%20Find%20the%20Running%20Median/Solution.java) | +| Data Structures | [Tries: Contacts](https://www.hackerrank.com/challenges/ctci-contacts) | 50 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Data%20Structures/Tries%20-%20Contacts/Solution.java) | +| Algorithms | [Sorting: Bubble Sort](https://www.hackerrank.com/challenges/ctci-bubble-sort) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/Sorting%20-%20Bubble%20Sort/Solution.java) | +| Algorithms | [Sorting: Comparator](https://www.hackerrank.com/challenges/ctci-comparator-sorting) | 35 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/Sorting%20-%20Comparator/Solution.java) | +| Algorithms | [Merge Sort: Counting Inversions](https://www.hackerrank.com/challenges/ctci-merge-sort) | 35 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/Merge%20Sort%20-%20Counting%20Inversions/Solution.java) | +| Algorithms | [Binary Search: Ice Cream Parlor](https://www.hackerrank.com/challenges/ctci-ice-cream-parlor) | 45 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/Binary%20Search%20-%20Ice%20Cream%20Parlor/Solution.java) | +| Algorithms | [DFS: Connected Cell in a Grid](https://www.hackerrank.com/challenges/ctci-connected-cell-in-a-grid) | 45 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/DFS%20-%20Connected%20Cell%20in%20a%20Grid/Solution.java) | +| Algorithms | [BFS: Shortest Reach in a Graph](https://www.hackerrank.com/challenges/ctci-bfs-shortest-reach) | 45 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Algorithms/BFS%20-%20Shortest%20Reach%20in%20a%20Graph/Solution.java) | +| Techniques / Concepts | [Time Complexity: Primality](https://www.hackerrank.com/challenges/ctci-big-o) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/Time%20Complexity%20-%20Primality/Solution.java) | +| Techniques / Concepts | [Recrusion: Fibonacci Numbers](https://www.hackerrank.com/challenges/ctci-fibonacci-numbers) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/Recursion%20-%20Fibonacci%20Numbers/Solution.java) | +| Techniques / Concepts | [Recursion: Davis' Staircase](https://www.hackerrank.com/challenges/ctci-recursive-staircase) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/Recursion%20-%20Davis'%20Staircase/Solution.java) | +| Techniques / Concepts | [DP: Coin Change](https://www.hackerrank.com/challenges/ctci-coin-change) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/DP%20-%20Coin%20Change/Solution.java) | +| Techniques / Concepts | [Bit Manipulation: Lonely Integer](https://www.hackerrank.com/challenges/ctci-lonely-integer) | 60 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Cracking%20the%20Coding%20Interview/Techniques%2C%20Concepts/Bit%20Manipulation%20-%20Lonely%20Integer/Solution.java) | # Data Structures @@ -525,212 +234,128 @@ SQL solutions are coded using MySQL | Trees | [Swap Nodes [Algo]](https://www.hackerrank.com/challenges/swap-nodes-algo) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Trees/Swap%20Nodes%20%5BAlgo%5D/Solution.java) | | Trees | [Is This a Binary Search Tree?](https://www.hackerrank.com/challenges/is-binary-search-tree) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Trees/Is%20This%20a%20Binary%20Search%20Tree/Solution.java) | | Trees | [Square-Ten Tree](https://www.hackerrank.com/challenges/square-ten-tree) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Trees/Square-Ten%20Tree/Solution.java) | -| Trees | [Balanced Forest](https://www.hackerrank.com/challenges/balanced-forest) | Hard | Coming Soon! | -| Balanced Trees | [Self Balancing Tree](https://www.hackerrank.com/challenges/self-balancing-tree) | Medium | Coming Soon! | -| Balanced Trees | [Array and simple queries](https://www.hackerrank.com/challenges/array-and-simple-queries) | Hard | Coming Soon! | -| Balanced Trees | [Median Updates](https://www.hackerrank.com/challenges/median) | Hard | Coming Soon! | | Stacks | [Maximum Element](https://www.hackerrank.com/challenges/maximum-element) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Stacks/Maximum%20Element/Solution.java) | | Stacks | [Balanced Brackets](https://www.hackerrank.com/challenges/balanced-brackets) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Stacks/Balanced%20Brackets/Solution.java) | -| Stacks | [Largest Rectangle](https://www.hackerrank.com/challenges/largest-rectangle) | Hard | Coming Soon! | -| Stacks | [Simple Text Editor](https://www.hackerrank.com/challenges/simple-text-editor) | Medium | Coming Soon! | -| Stacks | [Equal Stacks](https://www.hackerrank.com/challenges/equal-stacks) | Easy | Coming Soon! | -| Stacks | [Poisonous Plants](https://www.hackerrank.com/challenges/poisonous-plants) | Hard | Coming Soon! | -| Stacks | [AND xor OR](https://www.hackerrank.com/challenges/and-xor-or) | Hard | Coming Soon! | -| Stacks | [Waiter](https://www.hackerrank.com/challenges/waiter) | Medium | Coming Soon! | | Queues | [Queue using Two Stacks](https://www.hackerrank.com/challenges/queue-using-two-stacks) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Queues/Queue%20using%20Two%20Stacks/Solution.java) | -| Queues | [Castle on the Grid](https://www.hackerrank.com/challenges/castle-on-the-grid) | Medium | Coming Soon! | -| Queues | [Down to Zero II](https://www.hackerrank.com/challenges/down-to-zero-ii) | Medium | Coming Soon! | -| Queues | [Truck Tour](https://www.hackerrank.com/challenges/truck-tour) | Hard | Coming Soon! | -| Queues | [Queries with Fixed Length](https://www.hackerrank.com/challenges/queries-with-fixed-length) | Hard | Coming Soon! | -| Heap | [QHEAP1](https://www.hackerrank.com/challenges/qheap1) | Easy | Coming Soon! | -| Heap | [Jesse and Cookies](https://www.hackerrank.com/challenges/jesse-and-cookies) | Easy | Coming Soon! | | Heap | [Find the Running Median](https://www.hackerrank.com/challenges/find-the-running-median) | Hard | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Heap/Find%20the%20Running%20Median/Solution.java) | -| Heap | [Minimum Average Waiting Time](https://www.hackerrank.com/challenges/minimum-average-waiting-time) | Hard | Coming Soon! | -| Disjoint Set | [Merging Communities](https://www.hackerrank.com/challenges/merging-communities) | Hard | Coming Soon! | -| Disjoint Set | [Components in a graph](https://www.hackerrank.com/challenges/components-in-graph) | Medium | Coming Soon! | -| Disjoint Set | [Kundu and Tree](https://www.hackerrank.com/challenges/kundu-and-tree) | Hard | Coming Soon! | -| Disjoint Set | [Super Maximum Cost Queries](https://www.hackerrank.com/challenges/maximum-cost-queries) | Hard | Coming Soon! | | Multiple Choice | [Data Structures MCQ 1](https://www.hackerrank.com/challenges/how-well-do-you-know-trees) | Hard | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Multiple%20Choice/Data%20Structures%20MCQ%201/Solution.txt) | | Multiple Choice | [Data Structures MCQ 2](https://www.hackerrank.com/challenges/are-you-an-expert-on-data-structures) | Hard | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Multiple%20Choice/Data%20Structures%20MCQ%202/Solution.txt) | | Multiple Choice | [Data Structures MCQ 3](https://www.hackerrank.com/challenges/are-you-an-expert-on-data-structures-1) | Hard | [Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Multiple%20Choice/Data%20Structures%20MCQ%203/Solution.txt) | | Trie | [Contacts](https://www.hackerrank.com/challenges/contacts) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Data%20Structures/Trie/Contacts/Solution.java) | -| Trie | [No Prefix Set](https://www.hackerrank.com/challenges/no-prefix-set) | Hard | Coming Soon! | -| Advanced | [Kindergarten Adventures](https://www.hackerrank.com/challenges/kindergarten-adventures) | Medium | Coming Soon! | -| Advanced | [Cube Summation](https://www.hackerrank.com/challenges/cube-summation) | Hard | Coming Soon! | -| Advanced | [Mr. X and His Shots](https://www.hackerrank.com/challenges/x-and-his-shots) | Medium | Coming Soon! | -| Advanced | [Direct Connections](https://www.hackerrank.com/challenges/direct-connections) | Hard | Coming Soon! | -| Advanced | [Subsequence Weighting](https://www.hackerrank.com/challenges/subsequence-weighting) | Advanced | Coming Soon! | -| Advanced | [Jim and the Skyscrapers](https://www.hackerrank.com/challenges/jim-and-the-skyscrapers) | Medium | Coming Soon! | -| Advanced | [Counting On a Tree](https://www.hackerrank.com/challenges/counting-on-a-tree) | Expert | Coming Soon! | -| Advanced | [Unique Colors](https://www.hackerrank.com/challenges/unique-colors) | Advanced | Coming Soon! | -| Advanced | [Self-Driving Bus](https://www.hackerrank.com/challenges/self-driving-bus) | Advanced | Coming Soon! | -| Advanced | [Fibonacci Numbers Tree](https://www.hackerrank.com/challenges/fibonacci-numbers-tree) | Expert | Coming Soon! | -| Advanced | [Functional Palindromes](https://www.hackerrank.com/challenges/functional-palindromes) | Advanced | Coming Soon! | -| Advanced | [Lazy White Falcon](https://www.hackerrank.com/challenges/lazy-white-falcon) | Hard | Coming Soon! | -| Advanced | [Ticket to Ride](https://www.hackerrank.com/challenges/ticket-to-ride) | Expert | Coming Soon! | -| Advanced | [Heavy Light White Falcon](https://www.hackerrank.com/challenges/heavy-light-white-falcon) | Hard | Coming Soon! | -| Advanced | [Sum of the Maximums](https://www.hackerrank.com/challenges/little-alexey-and-sum-of-maximums) | Advanced | Coming Soon! | -| Advanced | [Heavy Light 2 White Falcon](https://www.hackerrank.com/challenges/heavy-light-2-white-falcon) | Hard | Coming Soon! | -| Advanced | [Library Query](https://www.hackerrank.com/challenges/library-query) | Advanced | Coming Soon! | -| Advanced | [Starfleet](https://www.hackerrank.com/challenges/starfleet) | Advanced | Coming Soon! | -| Advanced | [Almost Equal - Advanced](https://www.hackerrank.com/challenges/almost-equal-advanced) | Expert | Coming Soon! | -| Advanced | [Almost sorted interval](https://www.hackerrank.com/challenges/almost-sorted-interval) | Expert | Coming Soon! | -| Advanced | [Burger Happiness](https://www.hackerrank.com/challenges/burger-happiness) | Hard | Coming Soon! | -| Advanced | [Roy and alpha-beta trees](https://www.hackerrank.com/challenges/roy-and-alpha-beta-trees) | Hard | Coming Soon! | -| Advanced | [Coloring Tree](https://www.hackerrank.com/challenges/coloring-tree) | Hard | Coming Soon! | -| Advanced | [Recalling Early Days GP with Trees](https://www.hackerrank.com/challenges/recalling-early-days-gp-with-trees) | Hard | Coming Soon! | -| Advanced | [Swaps and Sum](https://www.hackerrank.com/challenges/swaps-and-sum) | Advanced | Coming Soon! | -| Advanced | [Arithmetic Progressions](https://www.hackerrank.com/challenges/arithmetic-progressions) | Advanced | Coming Soon! | -| Advanced | [Coolguy and Two Subsequences](https://www.hackerrank.com/challenges/coolguy-and-two-subsequences) | Advanced | Coming Soon! | -| Advanced | [White Falcon And Tree](https://www.hackerrank.com/challenges/white-falcon-and-tree) | Hard | Coming Soon! | -| Advanced | [Subtrees And Paths](https://www.hackerrank.com/challenges/subtrees-and-paths) | Advanced | Coming Soon! | -| Advanced | [Triplets](https://www.hackerrank.com/challenges/triplets) | Advanced | Coming Soon! | -| Advanced | [Beautiful Segments](https://www.hackerrank.com/challenges/beautiful-segments) | Expert | Coming Soon! | -| Advanced | [Divisibility](https://www.hackerrank.com/challenges/ab0) | Expert | Coming Soon! | -| Advanced | [BST maintenance](https://www.hackerrank.com/challenges/bst-maintenance) | Advanced | Coming Soon! | -| Advanced | [Find Maximum Index Product](https://www.hackerrank.com/challenges/find-maximum-index-product) | Medium | Coming Soon! | -| Advanced | [Taxicab Driver's Problem](https://www.hackerrank.com/challenges/taxicab-drivers-problem) | Advanced | Coming Soon! | -| Advanced | [Jaggu Playing with Balloons](https://www.hackerrank.com/challenges/jagia-playing-with-numbers) | Advanced | Coming Soon! | -| Advanced | [Dynamic Summation](https://www.hackerrank.com/challenges/dynamic-summation) | Hard | Coming Soon! | -| Advanced | [Two Array Problem](https://www.hackerrank.com/challenges/weird-queries) | Hard | Coming Soon! | -| Advanced | [Rooted Tree](https://www.hackerrank.com/challenges/rooted-tree) | Hard | Coming Soon! | -| Advanced | [The crazy helix](https://www.hackerrank.com/challenges/helix) | Advanced | Coming Soon! | -| Advanced | [Network administration](https://www.hackerrank.com/challenges/net-admin) | Hard | Coming Soon! | -| Advanced | [Easy Addition](https://www.hackerrank.com/challenges/easy-addition) | Expert | Coming Soon! | -| Advanced | [Find the permutation](https://www.hackerrank.com/challenges/find-the-permutation) | Expert | Coming Soon! | -| Advanced | [Company Retreat](https://www.hackerrank.com/challenges/company-retreat) | Advanced | Coming Soon! | # Java -| Subdomain | Challenge | Difficulty | Solution | -|:---------------------------:|:------------------------------------------------------------------------------------------------------------------------:|:----------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| -| Introduction | [Welcome to Java!](https://www.hackerrank.com/challenges/welcome-to-java) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Welcome%20to%20Java!/Solution.java) | -| Introduction | [Java Stdin and Stdout I](https://www.hackerrank.com/challenges/java-stdin-and-stdout-1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Stdin%20and%20Stdout%20I/Solution.java) | -| Introduction | [Java If-Else](https://www.hackerrank.com/challenges/java-if-else) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20If-Else/Solution.java) | -| Introduction | [Java Stdin and Stdout II](https://www.hackerrank.com/challenges/java-stdin-stdout) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Stdin%20and%20Stdout%20II/Solution.java) | -| Introduction | [Java Output Formatting](https://www.hackerrank.com/challenges/java-output-formatting) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Output%20Formatting/Solution.java) | -| Introduction | [Java Loops I](https://www.hackerrank.com/challenges/java-loops-i) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Loops%20I/Solution.java) | -| Introduction | [Java Loops II](https://www.hackerrank.com/challenges/java-loops) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Loops%20II/Solution.java) | -| Introduction | [Java Datatypes](https://www.hackerrank.com/challenges/java-datatypes) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Datatypes/Solution.java) | -| Introduction | [Java End-of-file](https://www.hackerrank.com/challenges/java-end-of-file) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20End-of-file/Solution.java) | -| Introduction | [Java Static Initializer Block](https://www.hackerrank.com/challenges/java-static-initializer-block) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Static%20Initializer%20Block/Solution.java) | -| Introduction | [Java Int to String](https://www.hackerrank.com/challenges/java-int-to-string) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Int%20to%20String/Solution.java) | -| Introduction | [Java Date and Time](https://www.hackerrank.com/challenges/java-date-and-time) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Date%20and%20Time/Solution.java) | -| Introduction | [Java Currency Formatter](https://www.hackerrank.com/challenges/java-currency-formatter) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Currency%20Formatter/Solution.java) | -| Strings | [Java Strings Introduction](https://www.hackerrank.com/challenges/java-strings-introduction) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Strings%20Introduction/Solution.java) | -| Strings | [Java Substring](https://www.hackerrank.com/challenges/java-substring) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Substring/Solution.java) | -| Strings | [Java String Compare](https://www.hackerrank.com/challenges/java-string-compare) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20String%20Compare/Solution.java) | -| Strings | [Java String Reverse](https://www.hackerrank.com/challenges/java-string-reverse) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20String%20Reverse/Solution.java) | -| Strings | [Java Anagrams](https://www.hackerrank.com/challenges/java-anagrams) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Anagrams/Solution.java) | -| Strings | [Java String Tokens](https://www.hackerrank.com/challenges/java-string-tokens) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20String%20Tokens/Solution.java) | -| Strings | [Pattern Syntax Checker](https://www.hackerrank.com/challenges/pattern-syntax-checker) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Pattern%20Syntax%20Checker/Solution.java) | -| Strings | [Java Regex](https://www.hackerrank.com/challenges/java-regex) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Regex/Solution.java) | -| Strings | [Java Regex 2 - Duplicate Words](https://www.hackerrank.com/challenges/duplicate-word) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Regex%202%20-%20Duplicate%20Words/Solution.java) | -| Strings | [Java Regex 3 - Username Checker](https://www.hackerrank.com/challenges/valid-username-checker) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Regex%203%20-%20Username%20Checker/Solution.java) | -| Strings | [Tag Content Extractor](https://www.hackerrank.com/challenges/tag-content-extractor) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Tag%20Content%20Extractor/Solution.java) | -| BigNumber | [Java BigInteger](https://www.hackerrank.com/challenges/java-biginteger) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/BigNumber/Java%20BigInteger/Solution.java) | -| BigNumber | [Java BigDecimal](https://www.hackerrank.com/challenges/java-bigdecimal) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/BigNumber/Java%20BigDecimal/Solution.java) | -| BigNumber | [Java Primality Test](https://www.hackerrank.com/challenges/java-primality-test) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/BigNumber/Java%20Primality%20Test/Solution.java) | -| Data Structures | [Java 1D Array](https://www.hackerrank.com/challenges/java-1d-array-introduction) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%201D%20Array/Solution.java) | -| Data Structures | [Java 2D Array](https://www.hackerrank.com/challenges/java-2d-array) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%202D%20Array/Solution.java) | -| Data Structures | [Java Subarray](https://www.hackerrank.com/challenges/java-negative-subarray) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Subarray/Solution.java) | -| Data Structures | [Java Arraylist](https://www.hackerrank.com/challenges/java-arraylist) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20ArrayList/Solution.java) | -| Data Structures | [Java 1D Array (Part 2)](https://www.hackerrank.com/challenges/java-1d-array) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%201D%20Array%20(Part%202)/Solution.java) | -| Data Structures | [Java List](https://www.hackerrank.com/challenges/java-list) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20List/Solution.java) | -| Data Structures | [Java Map](https://www.hackerrank.com/challenges/phone-book) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Map/Solution.java) | -| Data Structures | [Java Stack](https://www.hackerrank.com/challenges/java-stack) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Stack/Solution.java) | -| Data Structures | [Java Hashset](https://www.hackerrank.com/challenges/java-hashset) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Hashset/Solution.java) | -| Data Structures | [Java Generics](https://www.hackerrank.com/challenges/java-generics) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Generics/Solution.java) | -| Data Structures | [Java Comparator](https://www.hackerrank.com/challenges/java-comparator) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Comparator/Solution.java) | -| Data Structures | [Java Sort](https://www.hackerrank.com/challenges/java-sort) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Sort/Solution.java) | -| Data Structures | [Java Dequeue](https://www.hackerrank.com/challenges/java-dequeue) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Dequeue/Solution.java) | -| Data Structures | [Java BitSet](https://www.hackerrank.com/challenges/java-bitset) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20BitSet/Solution.java) | -| Data Structures | [Java Priority Queue](https://www.hackerrank.com/challenges/java-priority-queue) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Priority%20Queue/Solution.java) | -| Object Oriented Programming | [Java Inheritance I](https://www.hackerrank.com/challenges/java-inheritance-1) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Inheritance%20I/Solution.java) | -| Object Oriented Programming | [Java Inheritance II](https://www.hackerrank.com/challenges/java-inheritance-2) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Inheritance%20II/Solution.java) | -| Object Oriented Programming | [Java Abstract Class](https://www.hackerrank.com/challenges/java-abstract-class) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Abstract%20Class/Solution.java) | -| Object Oriented Programming | [Java Interface](https://www.hackerrank.com/challenges/java-interface) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Interface/Solution.java) | -| Object Oriented Programming | [Java Method Overriding](https://www.hackerrank.com/challenges/java-method-overriding) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Method%20Overriding/Solution.java) | -| Object Oriented Programming | [Java Method Overriding 2 (Super Keyword)](https://www.hackerrank.com/challenges/java-method-overriding-2-super-keyword) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Method%20Overriding%202%20(Super%20Keyword)/Solution.java) | -| Object Oriented Programming | [Java Instanceof keyword](https://www.hackerrank.com/challenges/java-instanceof-keyword) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Instanceof%20keyword/Solution.java) | -| Object Oriented Programming | [Java Iterator](https://www.hackerrank.com/challenges/java-iterator) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Iterator/Solution.java) | -| Object Oriented Programming | [Calculating Volume](https://www.hackerrank.com/challenges/calculating-volume) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Calculating%20Volume/Solution.java) | -| Exception Handling | [Java Exception Handling (Try-catch)](https://www.hackerrank.com/challenges/java-exception-handling-try-catch) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Exception%20Handling/Java%20Exception%20Handling%20(Try-catch)/Solution.java) | -| Exception Handling | [Java Exception Handling](https://www.hackerrank.com/challenges/java-exception-handling) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Exception%20Handling/Java%20Exception%20Handling/Solution.java) | -| Advanced | [Java Varargs - Simple Addition](https://www.hackerrank.com/challenges/simple-addition-varargs) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Varargs%20-%20Simple%20Addition/Solution.java) | -| Advanced | [Java Reflection - Attributes](https://www.hackerrank.com/challenges/java-reflection-attributes) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Reflection%20-%20Attributes/Solution.java) | -| Advanced | [Can You Access](https://www.hackerrank.com/challenges/can-you-access) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Can%20You%20Access/Solution.java) | -| Advanced | [Prime Checker](https://www.hackerrank.com/challenges/prime-checker) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Prime%20Checker/Solution.java) | -| Advanced | [Java Factory Pattern](https://www.hackerrank.com/challenges/java-factory) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Factory%20Pattern/Solution.java) | -| Advanced | [Java Singleton Pattern](https://www.hackerrank.com/challenges/java-singleton) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Singleton%20Pattern/Solution.java) | -| Advanced | [Java Visitor Pattern](https://www.hackerrank.com/challenges/java-vistor-pattern) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Visitor%20Pattern/Solution.java) | -| Advanced | [Java Annotations](https://www.hackerrank.com/challenges/java-annotations) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Annotations/Solution.java) | -| Advanced | [Covariant Return Types](https://www.hackerrank.com/challenges/java-covariance) | Easy | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Covariant%20Return%20Types/Solution.java) | -| Advanced | [Java Lambda Expressions](https://www.hackerrank.com/challenges/java-lambda-expressions) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Lambda%20Expressions/Solution.java) | -| Advanced | [Java MD5](https://www.hackerrank.com/challenges/java-md5) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20MD5/Solution.java) | -| Advanced | [Java SHA-256](https://www.hackerrank.com/challenges/sha-256) | Medium | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20SHA-256/Solution.java) | +| Subdomain | Challenge | Points | Solution | +|:---------------------------:|:------------------------------------------------------------------------------------------------------------------------:|:------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| +| Introduction | [Welcome to Java!](https://www.hackerrank.com/challenges/welcome-to-java) | 3 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Welcome%20to%20Java!/Solution.java) | +| Introduction | [Java Stdin and Stdout I](https://www.hackerrank.com/challenges/java-stdin-and-stdout-1) | 5 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Stdin%20and%20Stdout%20I/Solution.java) | +| Introduction | [Java If-Else](https://www.hackerrank.com/challenges/java-if-else) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20If-Else/Solution.java) | +| Introduction | [Java Stdin and Stdout II](https://www.hackerrank.com/challenges/java-stdin-stdout) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Stdin%20and%20Stdout%20II/Solution.java) | +| Introduction | [Java Output Formatting](https://www.hackerrank.com/challenges/java-output-formatting) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Output%20Formatting/Solution.java) | +| Introduction | [Java Loops I](https://www.hackerrank.com/challenges/java-loops-i) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Loops%20I/Solution.java) | +| Introduction | [Java Loops II](https://www.hackerrank.com/challenges/java-loops) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Loops%20II/Solution.java) | +| Introduction | [Java Datatypes](https://www.hackerrank.com/challenges/java-datatypes) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Datatypes/Solution.java) | +| Introduction | [Java End-of-file](https://www.hackerrank.com/challenges/java-end-of-file) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20End-of-file/Solution.java) | +| Introduction | [Java Static Initializer Block](https://www.hackerrank.com/challenges/java-static-initializer-block) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Static%20Initializer%20Block/Solution.java) | +| Introduction | [Java Int to String](https://www.hackerrank.com/challenges/java-int-to-string) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Int%20to%20String/Solution.java) | +| Introduction | [Java Date and Time](https://www.hackerrank.com/challenges/java-date-and-time) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Date%20and%20Time/Solution.java) | +| Introduction | [Java Currency Formatter](https://www.hackerrank.com/challenges/java-currency-formatter) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Introduction/Java%20Currency%20Formatter/Solution.java) | +| Strings | [Java Strings Introduction](https://www.hackerrank.com/challenges/java-strings-introduction) | 5 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Strings%20Introduction/Solution.java) | +| Strings | [Java Substring](https://www.hackerrank.com/challenges/java-substring) | 5 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Substring/Solution.java) | +| Strings | [Java String Compare](https://www.hackerrank.com/challenges/java-string-compare) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20String%20Compare/Solution.java) | +| Strings | [Java String Reverse](https://www.hackerrank.com/challenges/java-string-reverse) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20String%20Reverse/Solution.java) | +| Strings | [Java Anagrams](https://www.hackerrank.com/challenges/java-anagrams) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Anagrams/Solution.java) | +| Strings | [Java String Tokens](https://www.hackerrank.com/challenges/java-string-tokens) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20String%20Tokens/Solution.java) | +| Strings | [Pattern Syntax Checker](https://www.hackerrank.com/challenges/pattern-syntax-checker) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Pattern%20Syntax%20Checker/Solution.java) | +| Strings | [Java Regex](https://www.hackerrank.com/challenges/java-regex) | 25 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Regex/Solution.java) | +| Strings | [Java Regex 2 - Duplicate Words](https://www.hackerrank.com/challenges/duplicate-word) | 25 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Regex%202%20-%20Duplicate%20Words/Solution.java) | +| Strings | [Java Regex 3 - Username Checker](https://www.hackerrank.com/challenges/valid-username-checker) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Java%20Regex%203%20-%20Username%20Checker/Solution.java) | +| Strings | [Tag Content Extractor](https://www.hackerrank.com/challenges/tag-content-extractor) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Strings/Tag%20Content%20Extractor/Solution.java) | +| BigNumber | [Java BigInteger](https://www.hackerrank.com/challenges/java-biginteger) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/BigNumber/Java%20BigInteger/Solution.java) | +| BigNumber | [Java BigDecimal](https://www.hackerrank.com/challenges/java-bigdecimal) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/BigNumber/Java%20BigDecimal/Solution.java) | +| BigNumber | [Java Primality Test](https://www.hackerrank.com/challenges/java-primality-test) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/BigNumber/Java%20Primality%20Test/Solution.java) | +| Data Structures | [Java 1D Array](https://www.hackerrank.com/challenges/java-1d-array-introduction) | 5 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%201D%20Array/Solution.java) | +| Data Structures | [Java 2D Array](https://www.hackerrank.com/challenges/java-2d-array) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%202D%20Array/Solution.java) | +| Data Structures | [Java Subarray](https://www.hackerrank.com/challenges/java-negative-subarray) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Subarray/Solution.java) | +| Data Structures | [Java Arraylist](https://www.hackerrank.com/challenges/java-arraylist) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20ArrayList/Solution.java) | +| Data Structures | [Java 1D Array (Part 2)](https://www.hackerrank.com/challenges/java-1d-array) | 25 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%201D%20Array%20(Part%202)/Solution.java) | +| Data Structures | [Java List](https://www.hackerrank.com/challenges/java-list) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20List/Solution.java) | +| Data Structures | [Java Map](https://www.hackerrank.com/challenges/phone-book) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Map/Solution.java) | +| Data Structures | [Java Stack](https://www.hackerrank.com/challenges/java-stack) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Stack/Solution.java) | +| Data Structures | [Java Hashset](https://www.hackerrank.com/challenges/java-hashset) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Hashset/Solution.java) | +| Data Structures | [Java Generics](https://www.hackerrank.com/challenges/java-generics) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Generics/Solution.java) | +| Data Structures | [Java Comparator](https://www.hackerrank.com/challenges/java-comparator) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Comparator/Solution.java) | +| Data Structures | [Java Sort](https://www.hackerrank.com/challenges/java-sort) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Sort/Solution.java) | +| Data Structures | [Java Dequeue](https://www.hackerrank.com/challenges/java-dequeue) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Dequeue/Solution.java) | +| Data Structures | [Java BitSet](https://www.hackerrank.com/challenges/java-bitset) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20BitSet/Solution.java) | +| Data Structures | [Java Priority Queue](https://www.hackerrank.com/challenges/java-priority-queue) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Data%20Structures/Java%20Priority%20Queue/Solution.java) | +| Object Oriented Programming | [Java Inheritance I](https://www.hackerrank.com/challenges/java-inheritance-1) | 5 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Inheritance%20I/Solution.java) | +| Object Oriented Programming | [Java Inheritance II](https://www.hackerrank.com/challenges/java-inheritance-2) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Inheritance%20II/Solution.java) | +| Object Oriented Programming | [Java Abstract Class](https://www.hackerrank.com/challenges/java-abstract-class) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Abstract%20Class/Solution.java) | +| Object Oriented Programming | [Java Interface](https://www.hackerrank.com/challenges/java-interface) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Interface/Solution.java) | +| Object Oriented Programming | [Java Method Overriding](https://www.hackerrank.com/challenges/java-method-overriding) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Method%20Overriding/Solution.java) | +| Object Oriented Programming | [Java Method Overriding 2 (Super Keyword)](https://www.hackerrank.com/challenges/java-method-overriding-2-super-keyword) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Method%20Overriding%202%20(Super%20Keyword)/Solution.java) | +| Object Oriented Programming | [Java Instanceof keyword](https://www.hackerrank.com/challenges/java-instanceof-keyword) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Instanceof%20keyword/Solution.java) | +| Object Oriented Programming | [Java Iterator](https://www.hackerrank.com/challenges/java-iterator) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Java%20Iterator/Solution.java) | +| Object Oriented Programming | [Calculating Volume](https://www.hackerrank.com/challenges/calculating-volume) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Object%20Oriented%20Programming/Calculating%20Volume/Solution.java) | +| Exception Handling | [Java Exception Handling (Try-catch)](https://www.hackerrank.com/challenges/java-exception-handling-try-catch) | 10 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Exception%20Handling/Java%20Exception%20Handling%20(Try-catch)/Solution.java) | +| Exception Handling | [Java Exception Handling](https://www.hackerrank.com/challenges/java-exception-handling) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Exception%20Handling/Java%20Exception%20Handling/Solution.java) | +| Advanced | [Java Varargs - Simple Addition](https://www.hackerrank.com/challenges/simple-addition-varargs) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Varargs%20-%20Simple%20Addition/Solution.java) | +| Advanced | [Java Reflection - Attributes](https://www.hackerrank.com/challenges/java-reflection-attributes) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Reflection%20-%20Attributes/Solution.java) | +| Advanced | [Can You Access](https://www.hackerrank.com/challenges/can-you-access) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Can%20You%20Access/Solution.java) | +| Advanced | [Prime Checker](https://www.hackerrank.com/challenges/prime-checker) | 25 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Prime%20Checker/Solution.java) | +| Advanced | [Java Factory Pattern](https://www.hackerrank.com/challenges/java-factory) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Factory%20Pattern/Solution.java) | +| Advanced | [Java Singleton Pattern](https://www.hackerrank.com/challenges/java-singleton) | 15 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Singleton%20Pattern/Solution.java) | +| Advanced | [Java Visitor Pattern](https://www.hackerrank.com/challenges/java-vistor-pattern) | 40 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Visitor%20Pattern/Solution.java) | +| Advanced | [Java Annotations](https://www.hackerrank.com/challenges/java-annotations) | 25 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Annotations/Solution.java) | +| Advanced | [Covariant Return Types](https://www.hackerrank.com/challenges/java-covariance) | 20 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Covariant%20Return%20Types/Solution.java) | +| Advanced | [Java Lambda Expressions](https://www.hackerrank.com/challenges/java-lambda-expressions) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20Lambda%20Expressions/Solution.java) | +| Advanced | [Java MD5](https://www.hackerrank.com/challenges/java-md5) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20MD5/Solution.java) | +| Advanced | [Java SHA-256](https://www.hackerrank.com/challenges/sha-256) | 30 | [Solution.java](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/Java/Advanced/Java%20SHA-256/Solution.java) | # SQL -| Subdomain | Challenge | Difficulty | Solution | -|:-------------------:|:----------------------------------------------------------------------------------------------------------------------------:|:----------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------:| -| Basic Select | [Revising the Select Query I](https://www.hackerrank.com/challenges/revising-the-select-query) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Revising%20the%20Select%20Query%20I.sql) | -| Basic Select | [Revising the Select Query II](https://www.hackerrank.com/challenges/revising-the-select-query-2) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Revising%20the%20Select%20Query%20II.sql) | -| Basic Select | [Select All](https://www.hackerrank.com/challenges/select-all-sql) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Select%20All.sql) | -| Basic Select | [Select By ID](https://www.hackerrank.com/challenges/select-by-id) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Select%20By%20ID.sql) | -| Basic Select | [Japanese Cities' Attributes](https://www.hackerrank.com/challenges/japanese-cities-attributes) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Japanese%20Cities%27%20Attributes.sql) | -| Basic Select | [Japanese Cities' Names](https://www.hackerrank.com/challenges/japanese-cities-name) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Japanese%20Cities%27%20Names.sql) | -| Basic Select | [Weather Observation Station 3](https://www.hackerrank.com/challenges/weather-observation-station-3) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%203.sql) | -| Basic Select | [Weather Observation Station 4](https://www.hackerrank.com/challenges/weather-observation-station-4) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%204.sql) | -| Basic Select | [Weather Observation Station 6](https://www.hackerrank.com/challenges/weather-observation-station-6) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%206.sql) | -| Basic Select | [Weather Observation Station 7](https://www.hackerrank.com/challenges/weather-observation-station-7) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%207.sql) | -| Basic Select | [Weather Observation Station 9](https://www.hackerrank.com/challenges/weather-observation-station-9) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%209.sql) | -| Basic Select | [Weather Observation Station 10](https://www.hackerrank.com/challenges/weather-observation-station-10) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%2010.sql) | -| Basic Select | [Employee Names](https://www.hackerrank.com/challenges/name-of-employees) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Employee%20Names.sql) | -| Basic Select | [Employee Salaries](https://www.hackerrank.com/challenges/salary-of-employees) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Employee%20Salaries.sql) | -| Basic Select | [Weather Observation Station 1](https://www.hackerrank.com/challenges/weather-observation-station-1) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%201.sql) | -| Basic Select | [Weather Observation Station 8](https://www.hackerrank.com/challenges/weather-observation-station-8) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%208.sql) | -| Basic Select | [Weather Observation Station 11](https://www.hackerrank.com/challenges/weather-observation-station-11) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%2011.sql) | -| Basic Select | [Weather Observation Station 12](https://www.hackerrank.com/challenges/weather-observation-station-12) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%2012.sql) | -| Basic Select | [Higher Than 75 Marks](https://www.hackerrank.com/challenges/more-than-75-marks) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Higher%20Than%2075%20Marks.sql) | -| Basic Select | [Weather Observation Station 5](https://www.hackerrank.com/challenges/weather-observation-station-5) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%205.sql) | -| Basic Join | [Asian Population](https://www.hackerrank.com/challenges/asian-population) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Join/Asian%20Population.sql) | -| Basic Join | [African Cities](https://www.hackerrank.com/challenges/african-cities) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Join/African%20Cities.sql) | -| Basic Join | [Average Population of Each Continent](https://www.hackerrank.com/challenges/average-population-of-each-continent) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Join/Average%20Population%20of%20Each%20Continent.sql) | -| Basic Join | [The Report](https://www.hackerrank.com/challenges/the-report) | Medium | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Join/The%20Report.sql) | -| Basic Join | [Top Competitors](https://www.hackerrank.com/challenges/full-score) | Medium | Coming Soon! | -| Basic Join | [Ollivander's Inventory](https://www.hackerrank.com/challenges/harry-potter-and-wands) | Medium | Coming Soon! | -| Basic Join | [Challenges](https://www.hackerrank.com/challenges/challenges) | Medium | Coming Soon! | -| Basic Join | [Contest Leaderboard](https://www.hackerrank.com/challenges/contest-leaderboard) | Medium | Coming Soon! | -| Aggregation | [Revising Aggregations - The Count Function](https://www.hackerrank.com/challenges/revising-aggregations-the-count-function) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Revising%20Aggregations%20-%20The%20Count%20Function.sql) | -| Aggregation | [Revising Aggregations - The Sum Function](https://www.hackerrank.com/challenges/revising-aggregations-sum) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Revising%20Aggregations%20-%20The%20Sum%20Function.sql) | -| Aggregation | [Revising Aggregations - Averages](https://www.hackerrank.com/challenges/revising-aggregations-the-average-function) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Revising%20Aggregations%20-%20Averages.sql) | -| Aggregation | [Average Population](https://www.hackerrank.com/challenges/average-population) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Average%20Population.sql) | -| Aggregation | [Japan Population](https://www.hackerrank.com/challenges/japan-population) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Japan%20Population.sql) | -| Aggregation | [Population Density Difference](https://www.hackerrank.com/challenges/population-density-difference) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Population%20Density%20Difference.sql) | -| Aggregation | [Weather Observation Station 13](https://www.hackerrank.com/challenges/weather-observation-station-13) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2013.sql) | -| Aggregation | [Weather Observation Station 14](https://www.hackerrank.com/challenges/weather-observation-station-14) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2014.sql) | -| Aggregation | [Weather Observation Station 16](https://www.hackerrank.com/challenges/weather-observation-station-16) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2016.sql) | -| Aggregation | [The Blunder](https://www.hackerrank.com/challenges/the-blunder) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/The%20Blunder.sql) | -| Aggregation | [Weather Observation Station 2](https://www.hackerrank.com/challenges/weather-observation-station-2) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%202.sql) | -| Aggregation | [Weather Observation Station 15](https://www.hackerrank.com/challenges/weather-observation-station-15) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2015.sql) | -| Aggregation | [Weather Observation Station 17](https://www.hackerrank.com/challenges/weather-observation-station-17) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2017.sql) | -| Aggregation | [Top Earners](https://www.hackerrank.com/challenges/earnings-of-employees) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Top%20Earners.sql) | -| Aggregation | [Weather Observation Station 18](https://www.hackerrank.com/challenges/weather-observation-station-18) | Medium | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2018.sql) | -| Aggregation | [Weather Observation Station 19](https://www.hackerrank.com/challenges/weather-observation-station-19) | Medium | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2019.sql) | -| Aggregation | [Weather Observation Station 20](https://www.hackerrank.com/challenges/weather-observation-station-20) | Medium | Coming Soon! | -| Advanced Select | [Type of Triangle](https://www.hackerrank.com/challenges/what-type-of-triangle) | Easy | Coming Soon! | -| Advanced Select | [The PADS](https://www.hackerrank.com/challenges/the-pads) | Medium | Coming Soon! | -| Advanced Select | [Occupations](https://www.hackerrank.com/challenges/occupations) | Medium | Coming Soon! | -| Advanced Select | [Binary Search Tree](https://www.hackerrank.com/challenges/binary-search-tree-1) | Medium | Coming Soon! | -| Advanced Select | [New Companies](https://www.hackerrank.com/challenges/the-company) | Medium | Coming Soon! | -| Advanced Join | [Projects](https://www.hackerrank.com/challenges/projects) | Medium | Coming Soon! | -| Advanced Join | [Placements](https://www.hackerrank.com/challenges/placements) | Medium | Coming Soon! | -| Advanced Join | [Symmetric Pairs](https://www.hackerrank.com/challenges/symmetric-pairs) | Medium | Coming Soon! | -| Advanced Join | [Interviews](https://www.hackerrank.com/challenges/interviews) | Hard | Coming Soon! | -| Advanced Join | [15 Days of Learning SQL](https://www.hackerrank.com/challenges/15-days-of-learning-sql) | Hard | Coming Soon! | -| Alternative Queries | [Draw The Triangle 1](https://www.hackerrank.com/challenges/draw-the-triangle-1) | Easy | Coming Soon! | -| Alternative Queries | [Draw The Triangle 2](https://www.hackerrank.com/challenges/draw-the-triangle-2) | Easy | Coming Soon! | -| Alternative Queries | [Print Prime Numbers](https://www.hackerrank.com/challenges/print-prime-numbers) | Medium | Coming Soon! | +| Subdomain | Challenge | Points | Solution | +|:-------------------:|:----------------------------------------------------------------------------------------------------------------------------:|:------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------:| +| Basic Select | [Revising the Select Query I](https://www.hackerrank.com/challenges/revising-the-select-query) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Revising%20the%20Select%20Query%20I.sql) | +| Basic Select | [Revising the Select Query II](https://www.hackerrank.com/challenges/revising-the-select-query-2) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Revising%20the%20Select%20Query%20II.sql) | +| Basic Select | [Select All](https://www.hackerrank.com/challenges/select-all-sql) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Select%20All.sql) | +| Basic Select | [Select By ID](https://www.hackerrank.com/challenges/select-by-id) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Select%20By%20ID.sql) | +| Basic Select | [Japanese Cities' Attributes](https://www.hackerrank.com/challenges/japanese-cities-attributes) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Japanese%20Cities%27%20Attributes.sql) | +| Basic Select | [Japanese Cities' Names](https://www.hackerrank.com/challenges/japanese-cities-name) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Japanese%20Cities%27%20Names.sql) | +| Basic Select | [Weather Observation Station 1](https://www.hackerrank.com/challenges/weather-observation-station-1) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%201.sql) | +| Basic Select | [Weather Observation Station 3](https://www.hackerrank.com/challenges/weather-observation-station-3) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%203.sql) | +| Basic Select | [Weather Observation Station 4](https://www.hackerrank.com/challenges/weather-observation-station-4) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%204.sql) | +| Basic Select | [Weather Observation Station 5](https://www.hackerrank.com/challenges/weather-observation-station-5) | 30 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%205.sql) | +| Basic Select | [Weather Observation Station 6](https://www.hackerrank.com/challenges/weather-observation-station-6) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%206.sql) | +| Basic Select | [Weather Observation Station 7](https://www.hackerrank.com/challenges/weather-observation-station-7) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%207.sql) | +| Basic Select | [Weather Observation Station 8](https://www.hackerrank.com/challenges/weather-observation-station-8) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%208.sql) | +| Basic Select | [Weather Observation Station 9](https://www.hackerrank.com/challenges/weather-observation-station-9) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%209.sql) | +| Basic Select | [Weather Observation Station 10](https://www.hackerrank.com/challenges/weather-observation-station-10) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%2010.sql) | +| Basic Select | [Weather Observation Station 11](https://www.hackerrank.com/challenges/weather-observation-station-11) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%2011.sql) | +| Basic Select | [Weather Observation Station 12](https://www.hackerrank.com/challenges/weather-observation-station-12) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%2012.sql) | +| Basic Select | [Higher Than 75 Marks](https://www.hackerrank.com/challenges/more-than-75-marks) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Higher%20Than%2075%20Marks.sql) | +| Basic Select | [Employee Names](https://www.hackerrank.com/challenges/name-of-employees) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Employee%20Names.sql) | +| Basic Select | [Employee Salaries](https://www.hackerrank.com/challenges/salary-of-employees) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Employee%20Salaries.sql) | +| Basic Join | [Asian Population](https://www.hackerrank.com/challenges/asian-population) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Join/Asian%20Population.sql) | +| Basic Join | [African Cities](https://www.hackerrank.com/challenges/african-cities) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Join/African%20Cities.sql) | +| Basic Join | [Average Population of Each Continent](https://www.hackerrank.com/challenges/average-population-of-each-continent) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Join/Average%20Population%20of%20Each%20Continent.sql) | +| Basic Join | [The Report](https://www.hackerrank.com/challenges/the-report) | 20 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Join/The%20Report.sql) | +| Aggregation | [Revising Aggregations - The Count Function](https://www.hackerrank.com/challenges/revising-aggregations-the-count-function) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Revising%20Aggregations%20-%20The%20Count%20Function.sql) | +| Aggregation | [Revising Aggregations - The Sum Function](https://www.hackerrank.com/challenges/revising-aggregations-sum) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Revising%20Aggregations%20-%20The%20Sum%20Function.sql) | +| Aggregation | [Revising Aggregations - Averages](https://www.hackerrank.com/challenges/revising-aggregations-the-average-function) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Revising%20Aggregations%20-%20Averages.sql) | +| Aggregation | [Average Population](https://www.hackerrank.com/challenges/average-population) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Average%20Population.sql) | +| Aggregation | [Japan Population](https://www.hackerrank.com/challenges/japan-population) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Japan%20Population.sql) | +| Aggregation | [Population Density Difference](https://www.hackerrank.com/challenges/population-density-difference) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Population%20Density%20Difference.sql) | +| Aggregation | [The Blunder](https://www.hackerrank.com/challenges/the-blunder) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/The%20Blunder.sql) | +| Aggregation | [Top Earners](https://www.hackerrank.com/challenges/earnings-of-employees) | 20 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Top%20Earners.sql) | +| Aggregation | [Weather Observation Station 2](https://www.hackerrank.com/challenges/weather-observation-station-2) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%202.sql) | +| Aggregation | [Weather Observation Station 13](https://www.hackerrank.com/challenges/weather-observation-station-13) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2013.sql) | +| Aggregation | [Weather Observation Station 14](https://www.hackerrank.com/challenges/weather-observation-station-14) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2014.sql) | +| Aggregation | [Weather Observation Station 15](https://www.hackerrank.com/challenges/weather-observation-station-15) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2015.sql) | +| Aggregation | [Weather Observation Station 16](https://www.hackerrank.com/challenges/weather-observation-station-16) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2016.sql) | +| Aggregation | [Weather Observation Station 17](https://www.hackerrank.com/challenges/weather-observation-station-17) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2017.sql) | +| Aggregation | [Weather Observation Station 18](https://www.hackerrank.com/challenges/weather-observation-station-18) | 25 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2018.sql) | +| Aggregation | [Weather Observation Station 19](https://www.hackerrank.com/challenges/weather-observation-station-19) | 30 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2019.sql) | diff --git a/SQL/Basic Select/Weather Observation Station 5.sql b/SQL/Basic Select/Weather Observation Station 5.sql index 1ecc1a2..83d9db1 100644 --- a/SQL/Basic Select/Weather Observation Station 5.sql +++ b/SQL/Basic Select/Weather Observation Station 5.sql @@ -7,5 +7,5 @@ ORDER BY LENGTH(CITY), CITY LIMIT 1; SELECT CITY, LENGTH(CITY) FROM STATION -ORDER BY LENGTH(CITY) DESC, CITY DESC +ORDER BY LENGTH(CITY) DESC, CITY LIMIT 1; diff --git a/SQL/README.md b/SQL/README.md index c9b8363..b4d9390 100644 --- a/SQL/README.md +++ b/SQL/README.md @@ -1,62 +1,44 @@ # SQL -| Subdomain | Challenge | Difficulty | Solution | -|:-------------------:|:----------------------------------------------------------------------------------------------------------------------------:|:----------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------:| -| Basic Select | [Revising the Select Query I](https://www.hackerrank.com/challenges/revising-the-select-query) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Revising%20the%20Select%20Query%20I.sql) | -| Basic Select | [Revising the Select Query II](https://www.hackerrank.com/challenges/revising-the-select-query-2) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Revising%20the%20Select%20Query%20II.sql) | -| Basic Select | [Select All](https://www.hackerrank.com/challenges/select-all-sql) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Select%20All.sql) | -| Basic Select | [Select By ID](https://www.hackerrank.com/challenges/select-by-id) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Select%20By%20ID.sql) | -| Basic Select | [Japanese Cities' Attributes](https://www.hackerrank.com/challenges/japanese-cities-attributes) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Japanese%20Cities%27%20Attributes.sql) | -| Basic Select | [Japanese Cities' Names](https://www.hackerrank.com/challenges/japanese-cities-name) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Japanese%20Cities%27%20Names.sql) | -| Basic Select | [Weather Observation Station 3](https://www.hackerrank.com/challenges/weather-observation-station-3) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%203.sql) | -| Basic Select | [Weather Observation Station 4](https://www.hackerrank.com/challenges/weather-observation-station-4) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%204.sql) | -| Basic Select | [Weather Observation Station 6](https://www.hackerrank.com/challenges/weather-observation-station-6) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%206.sql) | -| Basic Select | [Weather Observation Station 7](https://www.hackerrank.com/challenges/weather-observation-station-7) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%207.sql) | -| Basic Select | [Weather Observation Station 9](https://www.hackerrank.com/challenges/weather-observation-station-9) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%209.sql) | -| Basic Select | [Weather Observation Station 10](https://www.hackerrank.com/challenges/weather-observation-station-10) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%2010.sql) | -| Basic Select | [Employee Names](https://www.hackerrank.com/challenges/name-of-employees) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Employee%20Names.sql) | -| Basic Select | [Employee Salaries](https://www.hackerrank.com/challenges/salary-of-employees) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Employee%20Salaries.sql) | -| Basic Select | [Weather Observation Station 1](https://www.hackerrank.com/challenges/weather-observation-station-1) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%201.sql) | -| Basic Select | [Weather Observation Station 8](https://www.hackerrank.com/challenges/weather-observation-station-8) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%208.sql) | -| Basic Select | [Weather Observation Station 11](https://www.hackerrank.com/challenges/weather-observation-station-11) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%2011.sql) | -| Basic Select | [Weather Observation Station 12](https://www.hackerrank.com/challenges/weather-observation-station-12) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%2012.sql) | -| Basic Select | [Higher Than 75 Marks](https://www.hackerrank.com/challenges/more-than-75-marks) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Higher%20Than%2075%20Marks.sql) | -| Basic Select | [Weather Observation Station 5](https://www.hackerrank.com/challenges/weather-observation-station-5) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%205.sql) | -| Basic Join | [Asian Population](https://www.hackerrank.com/challenges/asian-population) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Join/Asian%20Population.sql) | -| Basic Join | [African Cities](https://www.hackerrank.com/challenges/african-cities) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Join/African%20Cities.sql) | -| Basic Join | [Average Population of Each Continent](https://www.hackerrank.com/challenges/average-population-of-each-continent) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Join/Average%20Population%20of%20Each%20Continent.sql) | -| Basic Join | [The Report](https://www.hackerrank.com/challenges/the-report) | Medium | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Join/The%20Report.sql) | -| Basic Join | [Top Competitors](https://www.hackerrank.com/challenges/full-score) | Medium | Coming Soon! | -| Basic Join | [Ollivander's Inventory](https://www.hackerrank.com/challenges/harry-potter-and-wands) | Medium | Coming Soon! | -| Basic Join | [Challenges](https://www.hackerrank.com/challenges/challenges) | Medium | Coming Soon! | -| Basic Join | [Contest Leaderboard](https://www.hackerrank.com/challenges/contest-leaderboard) | Medium | Coming Soon! | -| Aggregation | [Revising Aggregations - The Count Function](https://www.hackerrank.com/challenges/revising-aggregations-the-count-function) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Revising%20Aggregations%20-%20The%20Count%20Function.sql) | -| Aggregation | [Revising Aggregations - The Sum Function](https://www.hackerrank.com/challenges/revising-aggregations-sum) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Revising%20Aggregations%20-%20The%20Sum%20Function.sql) | -| Aggregation | [Revising Aggregations - Averages](https://www.hackerrank.com/challenges/revising-aggregations-the-average-function) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Revising%20Aggregations%20-%20Averages.sql) | -| Aggregation | [Average Population](https://www.hackerrank.com/challenges/average-population) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Average%20Population.sql) | -| Aggregation | [Japan Population](https://www.hackerrank.com/challenges/japan-population) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Japan%20Population.sql) | -| Aggregation | [Population Density Difference](https://www.hackerrank.com/challenges/population-density-difference) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Population%20Density%20Difference.sql) | -| Aggregation | [Weather Observation Station 13](https://www.hackerrank.com/challenges/weather-observation-station-13) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2013.sql) | -| Aggregation | [Weather Observation Station 14](https://www.hackerrank.com/challenges/weather-observation-station-14) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2014.sql) | -| Aggregation | [Weather Observation Station 16](https://www.hackerrank.com/challenges/weather-observation-station-16) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2016.sql) | -| Aggregation | [The Blunder](https://www.hackerrank.com/challenges/the-blunder) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/The%20Blunder.sql) | -| Aggregation | [Weather Observation Station 2](https://www.hackerrank.com/challenges/weather-observation-station-2) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%202.sql) | -| Aggregation | [Weather Observation Station 15](https://www.hackerrank.com/challenges/weather-observation-station-15) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2015.sql) | -| Aggregation | [Weather Observation Station 17](https://www.hackerrank.com/challenges/weather-observation-station-17) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2017.sql) | -| Aggregation | [Top Earners](https://www.hackerrank.com/challenges/earnings-of-employees) | Easy | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Top%20Earners.sql) | -| Aggregation | [Weather Observation Station 18](https://www.hackerrank.com/challenges/weather-observation-station-18) | Medium | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2018.sql) | -| Aggregation | [Weather Observation Station 19](https://www.hackerrank.com/challenges/weather-observation-station-19) | Medium | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2019.sql) | -| Aggregation | [Weather Observation Station 20](https://www.hackerrank.com/challenges/weather-observation-station-20) | Medium | Coming Soon! | -| Advanced Select | [Type of Triangle](https://www.hackerrank.com/challenges/what-type-of-triangle) | Easy | Coming Soon! | -| Advanced Select | [The PADS](https://www.hackerrank.com/challenges/the-pads) | Medium | Coming Soon! | -| Advanced Select | [Occupations](https://www.hackerrank.com/challenges/occupations) | Medium | Coming Soon! | -| Advanced Select | [Binary Search Tree](https://www.hackerrank.com/challenges/binary-search-tree-1) | Medium | Coming Soon! | -| Advanced Select | [New Companies](https://www.hackerrank.com/challenges/the-company) | Medium | Coming Soon! | -| Advanced Join | [Projects](https://www.hackerrank.com/challenges/projects) | Medium | Coming Soon! | -| Advanced Join | [Placements](https://www.hackerrank.com/challenges/placements) | Medium | Coming Soon! | -| Advanced Join | [Symmetric Pairs](https://www.hackerrank.com/challenges/symmetric-pairs) | Medium | Coming Soon! | -| Advanced Join | [Interviews](https://www.hackerrank.com/challenges/interviews) | Hard | Coming Soon! | -| Advanced Join | [15 Days of Learning SQL](https://www.hackerrank.com/challenges/15-days-of-learning-sql) | Hard | Coming Soon! | -| Alternative Queries | [Draw The Triangle 1](https://www.hackerrank.com/challenges/draw-the-triangle-1) | Easy | Coming Soon! | -| Alternative Queries | [Draw The Triangle 2](https://www.hackerrank.com/challenges/draw-the-triangle-2) | Easy | Coming Soon! | -| Alternative Queries | [Print Prime Numbers](https://www.hackerrank.com/challenges/print-prime-numbers) | Medium | Coming Soon! | +| Subdomain | Challenge | Points | Solution | +|:-------------------:|:----------------------------------------------------------------------------------------------------------------------------:|:------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------:| +| Basic Select | [Revising the Select Query I](https://www.hackerrank.com/challenges/revising-the-select-query) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Revising%20the%20Select%20Query%20I.sql) | +| Basic Select | [Revising the Select Query II](https://www.hackerrank.com/challenges/revising-the-select-query-2) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Revising%20the%20Select%20Query%20II.sql) | +| Basic Select | [Select All](https://www.hackerrank.com/challenges/select-all-sql) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Select%20All.sql) | +| Basic Select | [Select By ID](https://www.hackerrank.com/challenges/select-by-id) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Select%20By%20ID.sql) | +| Basic Select | [Japanese Cities' Attributes](https://www.hackerrank.com/challenges/japanese-cities-attributes) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Japanese%20Cities%27%20Attributes.sql) | +| Basic Select | [Japanese Cities' Names](https://www.hackerrank.com/challenges/japanese-cities-name) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Japanese%20Cities%27%20Names.sql) | +| Basic Select | [Weather Observation Station 1](https://www.hackerrank.com/challenges/weather-observation-station-1) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%201.sql) | +| Basic Select | [Weather Observation Station 3](https://www.hackerrank.com/challenges/weather-observation-station-3) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%203.sql) | +| Basic Select | [Weather Observation Station 4](https://www.hackerrank.com/challenges/weather-observation-station-4) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%204.sql) | +| Basic Select | [Weather Observation Station 5](https://www.hackerrank.com/challenges/weather-observation-station-5) | 30 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%205.sql) | +| Basic Select | [Weather Observation Station 6](https://www.hackerrank.com/challenges/weather-observation-station-6) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%206.sql) | +| Basic Select | [Weather Observation Station 7](https://www.hackerrank.com/challenges/weather-observation-station-7) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%207.sql) | +| Basic Select | [Weather Observation Station 8](https://www.hackerrank.com/challenges/weather-observation-station-8) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%208.sql) | +| Basic Select | [Weather Observation Station 9](https://www.hackerrank.com/challenges/weather-observation-station-9) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%209.sql) | +| Basic Select | [Weather Observation Station 10](https://www.hackerrank.com/challenges/weather-observation-station-10) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%2010.sql) | +| Basic Select | [Weather Observation Station 11](https://www.hackerrank.com/challenges/weather-observation-station-11) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%2011.sql) | +| Basic Select | [Weather Observation Station 12](https://www.hackerrank.com/challenges/weather-observation-station-12) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Weather%20Observation%20Station%2012.sql) | +| Basic Select | [Higher Than 75 Marks](https://www.hackerrank.com/challenges/more-than-75-marks) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Higher%20Than%2075%20Marks.sql) | +| Basic Select | [Employee Names](https://www.hackerrank.com/challenges/name-of-employees) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Employee%20Names.sql) | +| Basic Select | [Employee Salaries](https://www.hackerrank.com/challenges/salary-of-employees) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Select/Employee%20Salaries.sql) | +| Basic Join | [Asian Population](https://www.hackerrank.com/challenges/asian-population) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Join/Asian%20Population.sql) | +| Basic Join | [African Cities](https://www.hackerrank.com/challenges/african-cities) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Join/African%20Cities.sql) | +| Basic Join | [Average Population of Each Continent](https://www.hackerrank.com/challenges/average-population-of-each-continent) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Join/Average%20Population%20of%20Each%20Continent.sql) | +| Basic Join | [The Report](https://www.hackerrank.com/challenges/the-report) | 20 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Basic%20Join/The%20Report.sql) | +| Aggregation | [Revising Aggregations - The Count Function](https://www.hackerrank.com/challenges/revising-aggregations-the-count-function) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Revising%20Aggregations%20-%20The%20Count%20Function.sql) | +| Aggregation | [Revising Aggregations - The Sum Function](https://www.hackerrank.com/challenges/revising-aggregations-sum) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Revising%20Aggregations%20-%20The%20Sum%20Function.sql) | +| Aggregation | [Revising Aggregations - Averages](https://www.hackerrank.com/challenges/revising-aggregations-the-average-function) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Revising%20Aggregations%20-%20Averages.sql) | +| Aggregation | [Average Population](https://www.hackerrank.com/challenges/average-population) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Average%20Population.sql) | +| Aggregation | [Japan Population](https://www.hackerrank.com/challenges/japan-population) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Japan%20Population.sql) | +| Aggregation | [Population Density Difference](https://www.hackerrank.com/challenges/population-density-difference) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Population%20Density%20Difference.sql) | +| Aggregation | [The Blunder](https://www.hackerrank.com/challenges/the-blunder) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/The%20Blunder.sql) | +| Aggregation | [Top Earners](https://www.hackerrank.com/challenges/earnings-of-employees) | 20 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Top%20Earners.sql) | +| Aggregation | [Weather Observation Station 2](https://www.hackerrank.com/challenges/weather-observation-station-2) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%202.sql) | +| Aggregation | [Weather Observation Station 13](https://www.hackerrank.com/challenges/weather-observation-station-13) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2013.sql) | +| Aggregation | [Weather Observation Station 14](https://www.hackerrank.com/challenges/weather-observation-station-14) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2014.sql) | +| Aggregation | [Weather Observation Station 15](https://www.hackerrank.com/challenges/weather-observation-station-15) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2015.sql) | +| Aggregation | [Weather Observation Station 16](https://www.hackerrank.com/challenges/weather-observation-station-16) | 10 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2016.sql) | +| Aggregation | [Weather Observation Station 17](https://www.hackerrank.com/challenges/weather-observation-station-17) | 15 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2017.sql) | +| Aggregation | [Weather Observation Station 18](https://www.hackerrank.com/challenges/weather-observation-station-18) | 25 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2018.sql) | +| Aggregation | [Weather Observation Station 19](https://www.hackerrank.com/challenges/weather-observation-station-19) | 30 | [MySQL Solution](https://github.com/rshaghoulian/HackerRank-solutions/blob/master/SQL/Aggregation/Weather%20Observation%20Station%2019.sql) |