Clues on a Binary Path

Cerinta completa Logan and Veronica live in Neptune, which has houses and bidirectional roads connecting them. Each road has an assigned value, , where , and each house is numbered with a distinct integer from to . Logan and Veronica

Construct the Array

Cerinta completa Your goal is to find the number of ways to construct an array such that consecutive positions contain different values. Specifically, we want to construct an array with elements such that each element between and , inclusive. We

Cloudy Day

Cerinta completa Quibdó in Colombia is one among the cities that receive maximum rainfall in the world. All year round, the city is covered in clouds. The city has many towns, located on a one-dimensional line. The positions and populations

Common Child

Cerinta completa A string is said to be a child of a another string if it can be formed by deleting 0 or more characters from the other string. Letters cannot be rearranged. Given two strings of equal length, what’s

Clique

Cerinta completa A clique in a graph is set of nodes such that there is an edge between any two distinct nodes in the set. Finding the largest clique in a graph is a computationally difficult problem. Currently no polynomial

Choosing White Balls

Cerinta completa There are balls in a row, and each ball is either black (B) or white (W). Perform removal operations with the goal of maximizing the number of white balls picked. For each operation (where ): Choose an integer,

Closest Numbers

Cerinta completa Sorting is useful as the first step in many different tasks. The most common task is to make finding things easier, but there are other uses as well. In this case, it will make it easier to determine

Chocolate in Box

Cerinta completa Dexter and Debra are playing a game. They have N containers each having one or more chocolates. Containers are numbered from 1 to N, where ith container has A[i] number of chocolates. The game goes like this. First