Recent posts

[Lucky Algorithm] TArmy Game (65/77)

less than 1 minute read

Army Game (Hacker Rank) Luke is daydreaming in Math class. He has a sheet of graph paper with rows and columns, and he imagines that there is an army base i...

[Lucky Algorithm] Utopian Tree (64/77)

less than 1 minute read

Utopian Tree (Hacker Rank) The Utopian Tree goes through 2 cycles of growth every year. Each spring, it doubles in height. Each summer, its height increases ...

[Lucky Algorithm] Maximizing XOR (63/77)

less than 1 minute read

Maximizing XOR (Hacker Rank) Given two integers, and , find the maximal value of xor , written , where and satisfy the following condition:

[Lucky Algorithm] Max Min (62/77)

less than 1 minute read

Max Min (Hacker Rank) 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 unfa...

[Lucky Algorithm] Cavity Map (61/77)

1 minute read

Cavity Map (Hacker Rank) You are given a square map as a matrix of integer strings. Each cell of the map has a value denoting its depth. We will call a cell ...