Cerinta completa Watson gave Sherlock a collection of arrays . Here each is an array of variable length. It is guaranteed that if you merge the arrays into one single array, you’ll get an array, , of distinct integers in
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
Pseudo-Isomorphic Substrings
Cerinta completa Two strings A and B, consisting of small English alphabet letters are called pseudo-isomorphic if Their lengths are equal For every pair (i,j), where 1 <= i < j <= |A|, B[i] = B[j], iff A[i] = A[j]
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
Recursive Digit Sum
Cerinta completa We define super digit of an integer using the following rules: Given an integer, we need to find the super digit of the integer. If has only digit, then its super digit is . Otherwise, the super digit
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
