## Extra Long Factorials HackerRank Solution in C, C++, Java, Python

The factorial of the integer n, written n!, is defined as: Calculate and print the factorial of a given integer. For example, if n=30, we calculate 30*29*28*….*2*1 and get . …

## Find Digits HackerRank Solution in C, C++, Java, Python

An integer d is a divisor of an integer n if the remainder of n/d=0. Given an integer, for each digit that makes up the integer determine whether it is …

## Jumping on the Clouds: Revisited HackerRank Solution in C, C++, Java, Python

A child is playing a cloud hopping game. In this game, there are sequentially numbered clouds that can be thunderheads or cumulus clouds. The character must jump from cloud to …

## Sequence Equation HackerRank Solution in C, C++, Java, Python

Given a sequence of  integers,  where each element is distinct and satisfies . For each  where , find any integer  such that  and print the value of  on a new …

## Circular Array Rotation HackerRank Solution in C, C++, Java, Python

John Watson knows of an operation called a right circular rotation on an array of integers. One rotation operation moves the last array element to the first position and shifts …

## Save the Prisoner! HackerRank Solution in C, C++, Java, Python

A jail has a number of prisoners and a number of treats to pass out to them. Their jailer decides the fairest way to divide the treats is to seat …

## Viral Advertising HackerRank Solution in C, C++, Java, Python

HackerLand Enterprise is adopting a new viral advertising strategy. When they launch a new product, they advertise it to exactly 5 people on social media. On the first day, half …

## Beautiful Days at the Movies HackerRank Solution in C, C++, Java, Python

A Discrete Mathematics professor has a class of students. Frustrated with their lack of discipline, the professor decides to cancel class if fewer than some number of students are present …

## Utopian Tree HackerRank Solution in C, C++, Java, Python

The Utopian Tree goes through 2 cycles of growth every year. Each spring, it doubles in height. Each summer, its height increases by 1 meter. A Utopian Tree sapling with …

## Designer PDF Viewer HackerRank Solution in C, C++, Java, Python

When a contiguous block of text is selected in a PDF viewer, the selection is highlighted with a blue rectangle. In this PDF viewer, each word is highlighted independently.  There …