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
Floyd : City of Blinding Lights
Cerinta completa Given a directed weighted graph where weight indicates distance, for each query, determine the length of the shortest path between nodes. There may be many queries, so efficiency counts. For example, your graph consists of nodes as in
Fraudulent Activity Notifications
Cerinta completa HackerLand National Bank has a simple policy for warning clients about possible fraudulent account activity. If the amount spent by a client on a particular day is greater than or equal to the client’s median spending for a
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
