## Drawing Book HackerRank Solution in C, C++, Java, Python

When they flip page 1, they see pages 2 and 3. Each page except the last page will always be printed on both sides. The last page may only be …

## Sales by Match HackerRank Solution in C, C++, Java, Python

Alex works at a clothing store. There is a large pile of socks that must be paired by color for sale. Given an array of integers representing the color of …

## Bill Division HackerRank Solution in C, C++, Java, Python

Two friends Anna and Brian, are deciding how to split the bill at a dinner. Each will only pay for the items they consume. Brian gets the check and calculates …

## Day of the Programmer HackerRank Solution in C, C++, Java, Python

Marie invented a Time Machine and wants to test it by time-traveling to visit Russia on the Day of the Programmer (the 256th day of the year) during a year …

## Migratory Birds HackerRank Solution in C, C++, Java, Python

You have been asked to help study the population of birds migrating across the continent. Each type of bird you are interested in will be identified by an integer value. …

## 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 …