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

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

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