The Wayback Machine - https://web.archive.org/web/20230512155027/https://www.geeksforgeeks.org/category/competitive-programming/
Skip to content

Category Archives: Competitive Programming

Given an integer N and a base X, the task is to find the minimum number of operations required to represent N as a sum… Read More
Given an array arr[] of integers of size n, the task is to check if we can sort the given array in non-decreasing order(i, e.arr[i]… Read More
Given a string of size N, the task is to find the minimum operation required in a string such that all elements of a string… Read More
Link/Cut Trees is a data structure used in computer science that efficiently maintains a forest of trees under the operations of link (joining two trees… Read More
Given an array X[] and a matrix M[][]. Then the task is to output the minimum elements needed to remove so that one row and… Read More
Given an array X[] of length N, Where X[i] for (1 ≤ i ≤ N) denotes the number of rupees we need to give to… Read More
Given a binary array X[] of size N. Two players A and B are playing games having the following rules, then the task is to… Read More
Given integers N and X, the task is to construct an array of size N such that exactly X subarrays have positive sums and other… Read More
IntelliJ IDEA is a popular Integrated Development Environment (IDE) used by many developers for Java programming. In this article, we’ll walk through the steps to… Read More
The reliability design problem is the designing of a system composed of several devices connected in series or parallel. Reliability means the probability to get… Read More
Given an integer N which corresponds to a N x N grid. The score you can get from a cell at the ith row and… Read More
Given two integers N and L, Find out a string of length L which consists of bitwise operators &(AND), |(OR), and ^(XOR), and if these… Read More
Dynamic Segment Trees with Poly Hash Tables is a data structure that combines the benefits of both dynamic segment trees and hash tables to efficiently… Read More
Given a Binary Search Tree with unique node values and a target value. Find the node whose data is equal to the target and return… Read More
Given an integer array A[] of size N and integer k. For a fixed value p, choose an index i (1 ≤ i ≤ n)… Read More