## Divisible Sum Pairs HackerRank Solution in C, C++, Java, Python

You are given an array of n integers,ar=ar[0],ar[1],…,ar[n-1] , and a positive integer,k . Find and print the number of (i,j) pairs where i<j and ar[i] + ar[j] is divisible …

## Sub-array Division HackerRank Solution in C, C++, Java, Python

Given a chocolate bar, two children, Lily and Ron, are determining how to share it. Each of the squares has an integer on it. Lily decides to share a contiguous …

## Breaking the Records HackerRank Solution in C, C++, Java, Python

Maria plays college basketball and wants to go pro. Each season she maintains a record of her play. She tabulates the number of times she breaks her season record for …

## Between Two Sets HackerRank Solution in C, C++, Java, Python

There will be two arrays of integers. Determine all integers that satisfy the following two conditions: The elements of the first array are all factors of the integer being considered …

## Grading Students HackerRank Solution in C, C++, Java, Python

HackerLand University has the following grading policy: Every student receives a grade in the inclusive range from 0 to 100. Any grade less than 40 is a failing grade. Sam …

## Apple and Oranges HackerRank Solution in C, C++, Java, Python

Sam’s house has an apple tree and an orange tree that yield an abundance of fruit. Using the information given below, determine the number of apples and oranges that land …

## Birthday Cake Candles HackerRank Solution in C, C++, Java, Python

You are in charge of the cake for a child’s birthday. You have decided the cake will have one candle for each year of their total age. They will only …

## Mini Max Sum HackerRank Solution in C, C++, Java, Python

Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the five integers. Then print the respective minimum and maximum values …

## A Very Big Sum HackerRank Solution in C, C++, Java, Python

Given an array of integers, find the sum of its elements. For example, if the array ar=[1,2,3] ,1+2+3=6, so return 6 . Function Description  Complete the simpleArraySum function in the …

## Compare the Triplet HackerRank Solution in C, C++, Java, Python

Alice and Bob each created one problem for HackerRank. A reviewer rates the two challenges, awarding points on a scale from 1 to 100 for three categories: problem clarity, originality, …