## A competitive programmer’s interview

How long have u been a competitive programmer? About 9 years. Top two websites you prefer to compete? Codingame, Topcoder What are some of the… Read More »

How long have u been a competitive programmer? About 9 years. Top two websites you prefer to compete? Codingame, Topcoder What are some of the… Read More »

The Coin Change Problem is considered by many to be essential to understanding the paradigm of programming known as Dynamic Programming. The two often are… Read More »

Given Q queries of three types where every query consists of a number. Add element num on the left Add element num on the right… Read More »

Given a string S consisting of lowercase characters(a-z) only, the task is to print a new string by rearranging the string in such a way… Read More »

Given Q queries. The queries are of three types and are described below: Add the number num to the list. Remove the number num from… Read More »

Find the value of a1, a1, a1, ….an such that the following two conditions are satisfied. Print the value of a1, a2, …, an and… Read More »

Given a bracket sequence of even length. The task is to find how many ways are there to make balanced bracket subsequences from the given… Read More »

A person stands in line of n people, but he doesn’t know exactly which position he occupies. He can say that there are no less… Read More »

Given a string of containing only L’s and R’s which represents left rotation and right rotation respectively. The task is to find the final direction… Read More »

Given three sides of the triangle, find the minimum increase in the length of the side of the triangle to make the area of the… Read More »

Given two numbers, the task is to find the number of carry operations required when two numbers are added as below. 1234 + 5678 ——–… Read More »

Given an integer . Find the number of solutions of which satisfies the equation: a = b + (a^b) Examples: Input: a = 4 Output:… Read More »

Given a number N (greater than 2 ). The task is to find two distinct prime numbers whose product will be equal to the given… Read More »

Given a number N. The task is to find the number of co-prime pairs (a, b) from 1 to N such that their product(a*b) is… Read More »

Given a number and a number . The task is to find the number of divisors of N which are divisible by K. Here K… Read More »