Mini-Max Sum

Cerinta completa 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 as a single line of two space-separated long

Misère Nim

Cerinta completa Two people are playing game of Misère Nim. The basic rules for this game are as follows: The game starts with piles of stones indexed from to . Each pile (where ) has stones. The players move in

Maximum Palindromes

Cerinta completa Madam Hannah Otto, the CEO of Reviver Corp., is fond of palindromes, or words that read the same forwards or backwards. She thinks palindromic brand names are appealing to millennials. As part of the marketing campaign for the

Minimum Operations

Cerinta completa In this challenge, the task is to debug the existing code to successfully execute all provided test files. There are boxes in front of you. For each , box contains red balls, green balls, and blue balls. You

P-sequences

Cerinta completa We call a sequence of N natural numbers (a1, a2, …, aN) a P-sequence, if the product of any two adjacent numbers in it is not greater than P. In other words, if a sequence (a1, a2, …,

Mining

Cerinta completa There are gold mines along a river, and each mine produces tons of gold. In order to collect the mined gold, we want to redistribute and consolidate it amongst exactly mines where it can be picked up by

Max Min

Cerinta completa You will be given a list of integers, , and a single integer . You must create an array of length from elements of such that its unfairness is minimized. Call that array . Unfairness of an array

Number Line Jumps

Cerinta completa You are choreographing a circus show with various animals. For one act, you are given two kangaroos on a number line ready to jump in the positive direction (i.e, toward positive infinity). The first kangaroo starts at location