Showing all posts tagged "Hackerrank Solution"
The Hurdle Race-Hackerrank
problem statement:
Dan is playing a video game in which his character competes in a hurdle race. Hurdles are of varying heights, and Dan has a maximum height he can jump. There is a magic potion he can take that will increase his maximum height by 1
u...
Posted on February 22nd, 2019
Divisible Sum Pairs-Hackerrank
Problem statement:
Problem can be found in hackerrank follow this to solve the problem
https://www.hackerrank.com/challenges/divisible-sum-pairs/problem
Explanation:
HOW TO SOLVE:
use two loops and add each existing pair and check whether the sum i...
Posted on February 21st, 2019
BETWEEN TWO SETS-HACKERRANK
PROBLEM STATEMENT :
You will be given two arrays of integers and asked to determine all integers that satisfy the following two conditions:The elements of the first array are all factors of the integer being consideredThe integer being considered is a ...
Posted on February 18th, 2019
Sock Merchant -HACKERRANK
Problem statement:
John works at a clothing store. He has a large pile of socks that he must pair by color for sale. Given an array of integers representing the color of each sock, determine how many pairs of socks with matching colors there are.
Expla...
Posted on February 17th, 2019