Array and Queries

Cerinta completa Given an array, you are asked to perform a number of queries and divide the array into what are called, beautiful subsequences. The array has length . A function is defined to be a minimal possible , such

Yet Another KMP Problem

Cerinta completa This challenge uses the famous KMP algorithm. It isn’t really important to understand how KMP works, but you should understand what it calculates. A KMP algorithm takes a string, , of length as input. Let’s assume that the

XOR Strings

Cerinta completa In this challenge, the task is to debug the existing code to successfully execute all provided test files. Given two strings consisting of digits 0 and 1 only, find the XOR of the two strings. To know more

Dynamic Summation

Cerinta completa Given a tree of N nodes, where each node is uniquely numbered in between [1, N]. Each node also has a value which is initially 0. You need to perform following two operations in the tree. Update Operation