Cerinta completa A space explorer’s ship crashed on Mars! They send a series of SOS messages to Earth for help. Letters in some of the SOS messages are altered by cosmic radiation during transmission. Given the signal received by Earth
Maximum Perimeter Triangle
Cerinta completa Given an array of stick lengths, use of them to construct a non-degenerate triangle with the maximum possible perimeter. Return an array of the lengths of its sides as integers in non-decreasing order. If there are several valid
New Year Present
Cerinta completa Nina received an odd New Year’s present from a student: a set of unbreakable sticks. Each stick has a length, , and the length of the stick is . Deciding to turn the gift into a lesson, Nina
Minimum Loss
Cerinta completa Lauren has a chart of distinct projected prices for a house over the next several years. She must buy the house in one year and sell it in another, and she must do so at a loss. She
Move the Coins
Cerinta completa Alice and Bob are playing a game, defined below: There is an undirected tree graph with nodes that has the following properties: Each node has golden coins. Node is root of the tree. The parent node of some
Migratory Birds
Cerinta completa Given an array of bird sightings where every element represents a bird type id, determine the id of the most frequently sighted type. If more than 1 type has been spotted that maximum amount, return the smallest of
Mandragora Forest
Cerinta completa The evil forest is guarded by vicious mandragoras. Garnet and her pet must make a journey through. She starts with health point () and experience points. As she encouters each mandragora, her choices are: Garnet’s pet eats mandragora
Maximizing XOR
Cerinta completa Given two integers, and , find the maximal value of xor , written , where and satisfy the following condition: For example, if and , then Our maximum value is . Function Description Complete the maximizingXor function in
Mixing proteins
Cerinta completa Some scientists are working on protein recombination, and during their research, they have found a remarkable fact: there are 4 proteins in the protein ring that mutate after every second according to a fixed pattern. For simplicity, proteins
Matrix
Cerinta completa The kingdom of Zion has cities connected by bidirectional roads. There is a unique path between any pair of cities. Morpheus has found out that the machines are planning to destroy the whole kingdom. If two machines can
