apurva's Site

apurva appu

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...

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...

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 ...

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...