Tutorials
Courses
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
36.8K+ articles
Misc
8.4K+ articles
Mathematical
7.5K+ articles
Arrays
6.0K+ articles
Competitive Programming
3.1K+ articles
Strings
2.9K+ articles
Greedy
2.1K+ articles
Algorithms
1.8K+ articles
Sorting
1.6K+ articles
Searching
1.6K+ articles
DSA
/
Competitive Programming
Competitive Programming
3.1K+ posts
Recent Articles
Popular Articles
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
CSES Problems
Cryptography Hash Functions
Last Updated: 20 June 2025
Cryptographic hash functions are mathematical algorithms that transform input data into a fixed-length sequence of characters, referred to as a hash value. Cryptographic h...
read more
Competitive Programming
Picked
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 - 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
Competitive Programming
Picked
BFS
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 - 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
Competitive Programming
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
Picked
DSA
Data Structures
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
Competitive Programming
Picked
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
Competitive Programming
Picked
LCA
CSES Problems
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
Competitive Programming
Picked
prefix-sum
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
Competitive Programming
Picked
CSES Problems
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
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
DP Problems Topic Wise
Last Updated: 13 March 2025
DP Problems on MathsFibonacci NumbersTribonacci NumbersLucas NumberBinomial CoefficientPascal's Triangle GenerationNth Row of Pascal TriangleCatalan Number Matrix Chain Mu...
read more
Competitive Programming
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
1
2
3
4
...
205
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 !