Skip to content

Category Archives: Competitive Programming

Every great programmer, like you, works to develop code that is as efficient as possible and produces the best results. So the main goal of… Read More
Dynamic connectivity, in general, refers to the storage of the connectivity of the components of a graph, where the edges change between some or all… Read More
Google Code Jam is an international programming competition hosted and controlled by Google. The competition began in 2003. From 2003 to 2007, Google Code Jam… Read More
Dynamic programming (DP) is arguably the most important tool in a competitive programmer’s repertoire. There are several optimizations in DP that reduce the time complexity… Read More
Starting the journey of programming and competitive coding, every coder wants to test himself/herself in the waters. To do so, he/she has to participate in… Read More
Knuth’s optimization is a very powerful tool in dynamic programming, that can be used to reduce the time complexity of the solutions primarily from O(N3)… Read More
In this article, we will discuss about the 10 most used inbuilt functions of C++ which will help you to save time and make code… Read More
Given an array arr consisting of N elements and Q queries of the following two types:   1 K: For this type of query, the array… Read More
Given an array arr consisting of N elements and Q queries of the following two types:   1 K: For this type of query, the array… Read More
Given an array arr consisting of N elements and Q queries of the following two types:   1 K: For this type of query, the array… Read More
Given an array arr consisting of N elements and Q queries of the following two types:   1 K: For this type of query, the array… Read More
Given a permutation arrays A[] consisting of N numbers in range [1, N], the task is to left rotate all the even numbers and right… Read More
Given a permutation arrays A[] consisting of N numbers in range [1, N], the task is to left rotate all the even numbers and right… Read More
The query-based questions of competitive programming are mainly of two types: Offline Query. Online Query.  Offline Query An offline algorithm allows us to manipulate the… Read More
It is given to you that on 1st January 2001 it was Monday. Let’s call a year as Geeky if the 1st January of that… Read More

Start Your Coding Journey Now!