M-Sequence

A sequence is called M-sequence if after removing zero or more elements from the sequence the GCD of...

Palindrome and Queries

You'll be given an array A of N strings containing lowercase english letters only and Q queries. In ...

Toph uses cookies. By continuing you agree to our Cookie Policy.