Bricks Game

Cerinta completa You and your friend decide to play a game using a stack consisting of N bricks. In this game, you can alternatively remove 1, 2 or 3 bricks from the top, and the numbers etched on the removed

Brick Tiling

Cerinta completa You are given a grid having N rows and M columns. A grid square can either be blocked or empty. Blocked squares are represented by a ‘#’ and empty squares are represented by ‘.’. Find the number of

Bowling Pins

Cerinta completa Bowling is a sport in which a player rolls a bowling ball towards a group of pins, the target being to knock down the pins at the end of a lane. In this challenge, the rules of the

Bonetrousle

Cerinta completa Here’s a humerus joke: Why did Papyrus the skeleton go to the store by himself? Because he had no body to go with him! Did you like it? Don’t worry, I’ve got a ton more. A skele-ton. Once

Bob and Ben

Cerinta completa Bob and Ben are playing a game with forests! The game’s rules are as follows: The game starts with a forest of trees. Bob always moves first and they take alternating turns. The first player with no available

Black and White Tree

Cerinta completa Nikita is making a graph as a birthday gift for her boyfriend, a fellow programmer! She drew an undirected connected graph with nodes numbered from to in her notebook. Each node is shaded in either white or black.

Billboards

Cerinta completa ADZEN is a popular advertising firm in your city that owns all billboard locations on Main street. The city council passed a new zoning ordinance mandating that no more than consecutive billboards may be up at any given