Increasing Array

Problem Statement - Time limit: 1.00 s Memory limit: 512 MB You are given an array of n integers. You want to modify the array so that it...

Repetitions

Problem Statement - Time limit: 1.00 s Memory limit: 512 MB You are given a DNA sequence: a string consisting of characters A, C, G, and...

Missing Number

Problem Statement - Time limit: 1.00 s Memory limit: 512 MB You are given all numbers between1,2,…,n except one. Your task is to find the...

Weird Algorithm

Problem Statement - Time limit: 1.00 s Memory limit: 512 MB Consider an algorithm that takes as input a positive integer n. If n is even,...