Skip to content

Category Archives: Competitive Programming

Given an array arr[] of size N, the task is to find the lexicographically smallest permutation of first 2*N natural numbers such that every ith… Read More
Given an array arr[] consisting of N integers, the task is to repeatedly remove elements that are smaller than the next element. Examples: Input: arr[]… Read More
Given a 2D array, arr[][] denoting a list of coordinates of N vertices on 2D space that is already sorted by x-coordinates and y-coordinates, the… Read More
Given 2 array of strings X and Y, the task is to find the number of superstrings in X. A string s is said to… Read More
Given a binary string of size N, the task is to count the number of alternating substrings that are present in the string S. Examples: … Read More
Given an array arr[] of size 3 denoting the number of balls of type 1, 2, and 3 respectively, the task is to find the… Read More
Though C++ is the dominating language in the competitive programming universe, there is a fair share of users who still continue to use Java as… Read More
Given a string path consisting of characters ‘N’, ‘S’, ‘E’ and ‘W’ denoting 1 unit movement in North, South, East, and West directions respectively, the… Read More
Given an array arr[] consisting of N distinct integers, the task is to print for each array element, all the greater elements present on its… Read More
Python Programming language makes everything easier and straightforward. Effective use of its built-in libraries can save a lot of time and help with faster submissions… Read More
Started with coding learned the c++ language and basic ds&algo and want to more dive into it. Well, competitive coding is exactly what you need… Read More
The find_by_order() is a built-in function of Ordered Set which is a Policy Based Data Structure in C++. Policy-based data structures are not part of… Read More
C++ is the most preferred language for competitive programming. In this article, some features of C++ are discussed that make it best for competitive programming.… Read More
Sublime Text is a text editor for coding. It has a smooth user interface and other exciting features. During the live contest, it is always… Read More
Most of the time, input constraints in Competitive programming questions are bigger than the limits of int. Therefore, there is a need to use long… Read More