Hackerrank – Select by ID

Problem Statement A description of the problem can be found on Hackerrank. Solution Select all rows and filter by value if ID column equals to 1661. I created solution in: SQL All solutions are also available on my GitHub. SQL

Hackerrank – Weather Observation Station 1

Problem Statement A description of the problem can be found on Hackerrank. Solution Select City, State and then order first by city ascending and then state ascending. I created solution in: SQL All solutions are also available on my GitHub. SQL

Hackerrank – Weather Observation Station 3

Problem Statement A description of the problem can be found on Hackerrank. Solution Select cities then filter if ID modulo 2 equals to 0 and order alphabetically ascending. I created solution in: SQL All solutions are also available on my GitHub. SQL

Hackerrank – Weather Observation Station 4

Problem Statement A description of the problem can be found on Hackerrank. Solution In a subselect selects count of all cities and unique cities and then substract these numbers. I created solution in: SQL All solutions are also available on my GitHub. SQL

Hackerrank – Handshake

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

JavaScript

Ruby

Scala

Hackerrank – Halloween Party

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

JavaScript

Scala

Ruby

Hackerrank – HackerRank Tweets

Problem Statement A description of the problem can be found on Hackerrank. Solution Check if every line in lowercase matches this regex pattern: .*hackerrank.* I created solution in: Java JavaScript Scala Ruby All solutions are also available on my GitHub. Java

JavaScript

Scala

Ruby

Hackerrank – Gemstones

Problem Statement A description of the problem can be found on Hackerrank. Solution Do intersect of all characters of strings comming as the input. I created solution in: Java JavaScript Ruby Scala All solutions are also available on my GitHub. Java

JavaScript

Ruby

Scala

Hackerrank – Game of Thrones – I

Problem Statement A description of the problem can be found on Hackerrank. Solution Palindrome is when: if the length of a string is even, then each character needs to be even times in the string if the length of a string is odd, then there is only one character, which count in the string is […]

Hackerrank – Funny String

Problem Statement A description of the problem can be found on Hackerrank. Solution For index i in string s check if all differences are equals:     I created solution in: Java JavaScript Scala Ruby All solutions are also available on my GitHub. Java

JavaScript

Scala

Ruby