Cerinta completa You are given a square map as a matrix of integer strings. Each cell of the map has a value denoting its depth. We will call a cell of the map a cavity if and only if this
Cats and a Mouse
Cerinta completa Two cats and a mouse are at various positions on a line. You will be given their starting positions. Your task is to determine which cat will reach the mouse first, assuming the mouse does not move and
Cards Permutation
Cerinta completa Alice was given the integers from to . She wrote all possible permutations in increasing lexicographical order, and wrote each permutation in a new line. For example, for , there are possible permutations: She then chose one permutation
Candles Counting
Cerinta completa Tim is visiting his grandma for two days and is bored due to the lack of the electricity over there. That’s why he starts to play with grandma’s colorful candle collection. He aligned the candles from left to
Candies
Cerinta completa Alice is a kindergarten teacher. She wants to give some candies to the children in her class. All the children sit in a line and each of them has a rating score according to his or her performance in the
CamelCase
Cerinta completa There is a sequence of words in CamelCase as a string of letters, , having the following properties: It is a concatenation of one or more words consisting of English letters. All letters in the first word are
Caesar Cipher
Cerinta completa Julius Caesar protected his confidential information by encrypting it using a cipher. Caesar’s cipher shifts each letter by a number of letters. If the shift takes you past the end of the alphabet, just rotate back to the
ByteLandian Tours
Cerinta completa The country of Byteland contains N cities and N – 1 bidirectional roads between them such that there is a path between any two cities. The cities are numbered (0,…,N – 1). The people were very unhappy about
Build a String
Cerinta completa Greg wants to build a string, of length . Starting with an empty string, he can perform operations: Add a character to the end of for dollars. Copy any substring of , and then add it to the
Build a Palindrome
Cerinta completa You have two strings, and . Find a string, , such that: can be expressed as where is a non-empty substring of and is a non-empty substring of . is a palindromic string. The length of is as
