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

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

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

Find the Median

Cerinta completa The median of a list of numbers is essentially its middle element after sorting. The same number of elements occur after it as before. Given a list of numbers with an odd number of elements, find the median?

Fibonacci Modified

Cerinta completa Implement a modified Fibonacci sequence using the following definition: Given terms and where , term is computed as: Given three integers, , , and , compute and print the term of a modified Fibonacci sequence. Example Return .

Find Digits

Cerinta completa An integer is a divisor of an integer if the remainder of . Given an integer, for each digit that makes up the integer determine whether it is a divisor. Count the number of divisors occurring within the

Far Vertices

Cerinta completa You are given a tree that has N vertices and N-1 edges. Your task is to mark as small number of vertices as possible, such that, the maximum distance between two unmarked vertices is less than or equal