Problems by Anachor

Betting Business
You have opened a new betting business. You have decided that you will accept bets on the upcoming C...
Hard 8/8/8
Generation Gap
There are n people standing in a queue. The age of the ith person is ai. The more the age gap betwee...
Half Measures
The numbers 1,2,3,⋯n (each integer from 1 to n once) are written on a board. In one operation, Jesse...
Peculiar Partitioning
You are given an array a of length n. You need to find a sub-sequence S of the array such that gcd(s...
Moderate 8/17/57
Peculiar Partitioning II
You are given an array a of length n. Each element of the array is a non-negative integer less than ...
Pleasant Permutations
A sequence of n integers is called a permutation if it contains all integers from 1 to n exactly onc...
Toph uses cookies. By continuing you agree to our Cookie Policy.