Grid Walking

Cerinta completa You are situated in an dimensional grid at position . The dimensions of the grid are . In one step, you can walk one step ahead or behind in any one of the dimensions. This implies that there

Goodland Electricity

Cerinta completa Goodland is a country with a number of evenly spaced cities along a line. The distance between adjacent cities is unit. There is an energy infrastructure project planning meeting, and the government needs to know the fewest number

Gena Playing Hanoi

Cerinta completa The Tower of Hanoi is a famous game consisting of rods and a number of discs of incrementally different diameters. The puzzle starts with the discs neatly stacked on one rod, ordered by ascending size with the smallest

GCD Matrix

Cerinta completa Alex has two arrays defined as and . He created an matrix, , where for each in . Recall that is the greatest common divisor of and . For example, if and , he builds like so: Alex’s

Funny String

Cerinta completa In this challenge, you will determine whether a string is funny or not. To determine whether a string is funny, create a copy of the string in reverse e.g. . Iterating through each string, compare the absolute difference

Find the Seed

Cerinta completa A company needs random numbers for its operation. random numbers have been generated using numbers as seeds and the following recurrence formula: The numbers used as seeds are . is the term of the recurrence. Due to a

Game of Thrones – I

Cerinta completa Dothraki are planning an attack to usurp King Robert’s throne. King Robert learns of this conspiracy from Raven and plans to lock the single door through which the enemy can enter his kingdom. But, to lock the door

Frog in Maze

Cerinta completa Alef the Frog is in an two-dimensional maze represented as a table. The maze has the following characteristics: Each cell can be free or can contain an obstacle, an exit, or a mine. Any two cells in the