Road Maintenance

Cerinta completa Byteland has cities (numbered from to ) and bidirectional roads. A path is comprised of or more connected roads. It is guaranteed that there is a path from any city to any other city. Steven is a road

Separate the Numbers

Cerinta completa A numeric string, , is beautiful if it can be split into a sequence of two or more positive integers, , satisfying the following conditions: for any (i.e., each element in the sequence is more than the previous

Repeated String

Cerinta completa There is a string, , of lowercase English letters that is repeated infinitely many times. Given an integer, , find and print the number of letter a‘s in the first letters of the infinite string. Example The substring

Sherlock and MiniMax

Cerinta completa Watson gives Sherlock an array of integers. Given the endpoints of an integer range, for all in that inclusive range, determine the minimum( abs(arr[i]-M) for all ) ). Once that has been determined for all integers in the

Save Humanity

Cerinta completa Oh!! Mankind is in trouble again. This time, it’s a deadly disease spreading at a rate never seen before. The need of the hour is to set up efficient virus detectors. You are the lead at Central Hospital

Prime Digit Sums

Cerinta completa Chloe is fascinated by prime numbers. She came across the number on a sign and, though the number is not prime, found some primes hiding in it by using the following rules: Every three consecutive digits sum to

Police Operation

Cerinta completa Roy is helping the police department of his city in crime fighting. Today, they informed him about a new planned operation. Think of the city as a plane. The road along the -axis is very crime prone, because