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

Gridland Provinces

Cerinta completa The Kingdom of Gridland contains provinces. Each province is defined as a grid where each cell in the grid represents a city. Every cell in the grid contains a single lowercase character denoting the first character of the

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

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

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

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