## Beautiful Pairs hackerrank Solution

September 02, 2021You are given two arrays, A and B, both containing N integers. A pair of indices is beautiful if the element of array is equal to the…

## Beautiful Pairs hackerrank Solution

September 02, 2021You are given two arrays, A and B, both containing N integers. A pair of indices is beautiful if the element of array is equal to the…

## Marc's Cakewalk hackerrank Solution

September 02, 2021Marc loves cupcakes, but he also likes to stay fit. Each cupcake has a calorie count, and Marc can walk a distance to expend those calories…

## Sherlock and MiniMax hackerrank Solution

September 02, 2021Watson gives Sherlock an array of integers. Given the endpoints of an integer range, for all M in that inclusive range, determine the…

## Candies

August 20, 2021Alice is a kindergarten teacher. She wants to give some candies to the children in her class. All the children sit in a line and each of…

## Permuting Two Arrays

August 20, 2021There are two n-element arrays of integers, A and B. Permute them into some a and b such that the relation a[i] + b[i] >= k holds for all i…

## Max and Min

August 20, 2021You will be given a list of integers,arr, and a single integer k. You must create an array of length k from elements of arr such that its…