Hackerrank - Sherlock and Anagrams

Hackerrank - Problem Statement A description of the problem can be found on Hackerrank. Solution The hint is given in problem description. Explore all pairs if they are anagrams. I created solution in: Java All solutions are also available on my GitHub profile. Java

Hackerrank - ACM ICPC Team

Hackerrank - Problem Statement A description of the problem can be found on Hackerrank. Solution I will create all posible pairs of players. That means I will try to combine every possible combination of player pairs. The topics are given in binary way. I will use OR operation on binaries. It is enough that one […]

Hackerrank - Weighted Uniform Strings

Hackerrank - Problem Statement A description of the problem can be found on Hackerrank. Solution I will find a list of all substrings, which contains same following characters. Then I will create all weights - When a substring has lengths of n, I will create n parts. This will give me all weights of a […]

Hackerrank - Birthday Cake Candles

Hackerrank - Problem Statement A description of the problem can be found on Hackerrank. Solution We find the highest candles. Then we find count of candles with max height. I created solution in: Scala Java JavaScript All solutions are also available on my GitHub profile. Scala

Java

Javascript

Hackerrank - Taum and B'day

Hackerrank - Problem Statement A description of the problem can be found on Hackerrank. Solution The hint is given in problem description. One should compare if it is better to buy presents without changing colors or with changing colors. I created solution in: Scala Java JavaScript All solutions are also available on my GitHub profile. […]

Hackerrank - Sequence Equation

Hackerrank - Problem Statement A description of the problem can be found on Hackerrank. Solution I have given count of numbers n. I will iterate over all numbers from 1 to n I will find index of each iterated number in all elements and then index of index within all elements I created solution in: […]

Hackerrank - Priyanka and Toys

Hackerrank - Problem Statement A description of the problem can be found on Hackerrank. Solution I created solution in: Scala Java JavaScript All solutions are also available on my GitHub profile. Scala

Java

Javascript

Hackerrank - Consecutive Subsequences

Hackerrank - Problem Statement A description of the problem can be found on Hackerrank. Solution http://stackoverflow.com/questions/24518682/count-subsequences-divisible-by-k I created solution in: Java All solutions are also available on my GitHub profile. Java