Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Mathematical
7.8K+ articles
Arrays
6.5K+ articles
Strings
3.3K+ articles
C++ Programs
2.4K+ articles
Greedy
2.1K+ articles
Algorithms
2.0K+ articles
Searching
1.7K+ articles
Dynamic Programming
1.6K+ articles
DSA
/
Competitive Programming
Competitive Programming
2.3K+ posts
Recent Articles
Popular Articles
From Beginner to Advanced Programmer: My Journey to Success in Competitive Programming
Last Updated: 02 January 2025
When I first entered university, I had no idea what to expect. Among a class of 50 students, I quickly realized I wasn’t alone in struggling with the programming challenge...
read more
Competitive Programming
Competitve Exam Experiences
CSES Solutions - Forest Queries
Last Updated: 01 July 2024
Given an N X N grid representing the map of a forest. Each square is either empty or contains a tree. The upper-left square has coordinates (1,1), and the lower-right squa...
read more
Matrix
Competitive Programming
prefix-sum
Picked
DSA
CSES Problems
CSES Solutions - Acyclic Graph Edges
Last Updated: 25 June 2024
Given an undirected graph, the task is to choose a direction for each edge so that the resulting directed graph is acyclic. You can print any valid solution.Example:Input:...
read more
Graph
Competitive Programming
Picked
DSA
CSES Problems
CSES Solutions - Distance Queries
Last Updated: 03 December 2024
Given a tree consisting of n nodes. The task is to process q queries of the form: What is the distance between nodes a and b?Examples:Input: n = 5, q = 2, edges = {{1, 2},...
read more
Tree
Competitive Programming
LCA
Picked
DSA
CSES Problems
Venice Technique
Last Updated: 17 July 2024
Venice Technique is a strategy where we create a new data structure called Venice Set that mainly helps to answer range queries which involves updating all elements by a c...
read more
Competitive Programming
Data Structures
Data Structures
Picked
DSA
Game Theory
Last Updated: 13 June 2024
Game Theory is a topic in competitive programming that involves a certain type of problem, where there are some players who play a game based on given rules and the task i...
read more
Competitive Programming
Learning the art of Competitive Programming
Last Updated: 13 June 2024
Learning the art of Competitive ProgrammingHow to begin with Competitive Programming?Top 10 Algorithms and Data Structures for Competitive ProgrammingHow to prepare for AC...
read more
Competitive Programming
Programming Basics
CSES Solutions - Company Queries II
Last Updated: 14 June 2024
A company has n employees, who form a tree hierarchy where each employee has a boss, except for the general director. Your task is to process q queries of the form: who is...
read more
Graph
Competitive Programming
Picked
DSA
CSES Problems
CSES Solutions - Creating Strings II
Last Updated: 06 June 2024
Given a string, your task is to calculate the number of different strings that can be created using its characters.Examples:Input: S = "aa"Output: 1Explanation: There is o...
read more
Combinatorial
Competitive Programming
DSA
CSES Problems
My Journey of Competitive Programming
Last Updated: 23 May 2024
Hello geeks,Today I want to share with you my competitive programming journey. Competitive programming means solving problems in different platforms. There are many benefi...
read more
Competitive Programming
Experiences
Write It Up 2024
CSES Solutions - Swap Game
Last Updated: 28 May 2024
You are given a 3X3 grid containing the numbers 1,2...9. Your task is to perform a sequence of moves so that the grid will look like this:1 2 34 5 67 8 9On each move, you...
read more
Graph
Competitive Programming
BFS
Picked
DSA
CSES Problems
CSES Solutions - Another Game
Last Updated: 17 May 2024
There are n heaps of coins and two players who move alternately. On each move, a player selects some of the nonempty heaps and removes one coin from each heap. The player ...
read more
Competitive Programming
Game Theory
DSA
CSES Problems
CSES Solutions – Course Schedule
Last Updated: 19 May 2024
You have to complete n courses. There are m requirements of form "course a has to be completed before course b". Your task is to find an order in which you can complete th...
read more
Graph
Competitive Programming
DSA
CSES Problems
LeetCode Contests Experience
Last Updated: 13 May 2024
Participating in LeetCode contests has been an exhilarating journey, marked by challenges, perseverance, and continuous learning. In this narrative, I share my personal ex...
read more
Competitive Programming
Experiences
Leetcode-Contests
Write It Up 2024
Competitve Exam Experiences
CSES Solutions - Prüfer Code
Last Updated: 15 May 2024
A Prüfer code of a tree of n nodes is a sequence of n-2 integers that uniquely specifies the structure of the tree. The code is constructed as follows: As long as there ar...
read more
Tree
Competitive Programming
Picked
DSA
CSES Problems
1
2
3
4
...
157
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !