Cerinta completa Given a square grid of characters in the range ascii[a-z], rearrange elements of each row alphabetically, ascending. Determine if the columns are also in ascending alphabetical order, top to bottom. Return YES if they are or NO if
Hyper Strings
Cerinta completa String is called a Super String if and only if: contains only letters ; For any and , has lower ascii code than , where Given a set of Super Strings , a Hyper String is a string
Hexagonal Grid
Cerinta completa You are given a hexagonal grid consisting of two rows, each row consisting of cells. The cells of the first row are labelled and the cells of the second row are labelled . For example, for : (Note
Going to the Office
Cerinta completa Ms.Kox enjoys her job, but she does not like to waste extra time traveling to and from her office. After working for many years, she knows the shortest-distance route to her office on a regular day. Recently, the
How Many Substrings?
Cerinta completa Consider a string of characters, , of where each character is indexed from to . You are given queries in the form of two integer indices: and . For each query, count and print the number of different
Halloween Sale
Cerinta completa You wish to buy video games from the famous online video game store Mist. Usually, all games are sold at the same price, dollars. However, they are planning to have the seasonal Halloween Sale next month in which
Gemstones
Cerinta completa There is a collection of rocks where each rock has various minerals embeded in it. Each type of mineral is designated by a lowercase letter in the range . There may be multiple occurrences of a mineral in
Gaming Array
Cerinta completa Andy wants to play a game with his little brother, Bob. The game starts with an array of distinct integers and the rules are as follows: Bob always plays first. In a single move, a player chooses the
Happy Ladybugs
Cerinta completa Happy Ladybugs is a board game having the following properties: The board is represented by a string, , of length . The character of the string, , denotes the cell of the board. If is an underscore (i.e.,
Game of Stones
Cerinta completa Two players called and are playing a game with a starting number of stones. Player always plays first, and the two players move in alternating turns. The game’s rules are as follows: In a single move, a player
