Tastes Like Winning

Cerinta completa Stephanie just learned about a game called Nim in which there are two players and piles of stones. During each turn, a player must choose any non-empty pile and take as many stones as they want. The first

Ticket

Cerinta completa There are people at the railway station, and each one wants to buy a ticket to go to one of different destinations. The people are in a queue. There are ticket windows from which tickets can be purchased.

The Prime Game

Cerinta completa Manasa loves the nim game, in which there are buckets, each having balls. Two players play alternately. Each turn consists of removing some non-zero number of balls from one of the bucket. A player with lack of moves

The Grid Search

Cerinta completa Given an array of strings of digits, try to find the occurrence of a given pattern of digits. In the grid and pattern arrays, each string represents a row in the grid. For example, consider the following grid:

The Bomberman Game

Cerinta completa Bomberman lives in a rectangular grid. Each cell in the grid either contains a bomb or nothing at all. Each bomb can be planted in any cell of the grid but once planted, it will detonate after exactly

Taum and B’day

Cerinta completa Taum is planning to celebrate the birthday of his friend, Diksha. There are two types of gifts that Diksha wants from Taum: one is black and the other is white. To make her happy, Taum has to buy

Synchronous Shopping

Cerinta completa Bitville is a seaside city that has a number of shopping centers connected by bidirectional roads, each of which has a travel time associated with it. Each of the shopping centers may have a fishmonger who sells one