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
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
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
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.,
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
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
Hackerland Radio Transmitters
Cerinta completa Hackerland is a one-dimensional city with houses aligned at integral locations along a road. The Mayor wants to install radio transmitters on the roofs of the city’s houses. Each transmitter has a fixed range meaning it can transmit
HackerRank in a String!

Cerinta completa We say that a string contains the word hackerrank if a subsequence of its characters spell the word hackerrank. Remeber that a subsequence maintains the order of characters selected from a sequence. More formally, let be the respective
Grid Walking
Cerinta completa You are situated in an dimensional grid at position . The dimensions of the grid are . In one step, you can walk one step ahead or behind in any one of the dimensions. This implies that there