## 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 can one become good at Data structures and Algorithms easily?
- Make all numbers of an array equal
- Reach the numbers by making jumps of two given lengths
- Some useful C++ tricks for beginners in Competitive Programming
- Check if a number is perfect square without finding square root
- Sum of XOR of all subarrays
- Sort the array of strings according to alphabetical order defined by another string
- Make Binary Search Tree
- Sum of similarities of string with all of its suffixes
- Check if it is possible to reach a number by making jumps of two given length
- Smallest Pair Sum in an array
- Find the number in a range having maximum product of the digits
- Maximum of all Subarrays of size k using set in C++ STL
- Print matrix in snake pattern from the last column
- Count distinct substrings that contain some characters at most k times
- Number of array elements derivable from D after performing certain operations
- Operations required to make the string empty
- Program to find the kth character after decrypting a string
- Color N boxes using M colors such that K boxes have different color from the box on its left
- Minimum number of sets with numbers less than Y
- Find two numbers whose divisors are given in a random order
- Count common characters in two strings
- Sum of the multiples of two numbers below N
- Number of subarrays have bitwise OR >= K
- Given two arrays count all pairs whose sum is an odd number
- Sum of bitwise AND of all subarrays
- Use of FLAG in programming
- Maximum length substring with highest frequency in a string
- Interactive Problems in Competitive Programming
- Shortest Path using Meet In The Middle

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, a2, a3, ….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 »