Tags wise problems collection from different online judge.
A repository to keep track of good problems that will force you to think and improve your data structure and algorithmic knowledge by solving. The problems are collected from different sources and online judges.
Bruteforce and Implementation
# | Title | Online Judge | Problem Link | Level | Solution |
---|---|---|---|---|---|
1 | K-String | Codeforces | K-String | Level-2 | GNU C++17 |
2 | Airport | Codeforces | Airport | Level-2 | GNU C++17 |
3 | Kitahara Haruki's Gift | Codeforces | Kitahara Haruki's Gift | Level-2 | GNU C++17 |
4 | Stone Age Problem | Codeforces | Stone Age Problem | Level-2 | GNU C++17 |
5 | Big Segment | Codeforces | Big Segment | Level-2 | GNU C++14 |
6 | Game with Cards | Codeforces | Game with Cards | Level-2 | GNU C++14 |
7 | Interesting Sum | Codeforces | Interesting Sum | Level-2 | GNU C++14 |
8 | Wonderful Permutation | Codeforces | Wonderful Permutation | Level-2 | GNU C++14 |
9 | Dividing Orange | Codeforces | Dividing Orange | Level-2 | GNU C++14 |
10 | Cards with Numbers | Codeforces | Cards with Numbers | Level-3 | GNU C++14 |
11 | Fence | Codeforces | Fence | Level-3 | GNU C++14 |
12 | IQ Test | Codeforces | IQ Test | Level-3 | GNU C++14 |
13 | Kuriyama Mirai's Stones | Codeforces | Kuriyama Mirai's Stones | Level-3 | GNU C++14 |
14 | Flipping Game | Codeforces | Flipping Game | Level-3 | GNU C++14 |
15 | Path Parity | Codechef | Path Parity | Level-3 | GNU C++14 |
16 | Candy Bags | Codeforces | Candy Bags | Level-3 | GNU C++14 |
17 | Lunch Rush | Codeforces | Lunch Rush | Level-3 | GNU C++14 |
18 | Cakeminator | Codeforces | Cakeminator | Level-3 | GNU C++14 |
19 | Jeff and Periods | Codeforces | Jeff and Periods | Level-3 | GNU C++14 |
20 | Life Without Zeros | Codeforces | Life Without Zeros | Level-3 | GNU C++14 |
21 | Equal Strings | Codechef | Equal Strings | Level-3 | GNU C++14 |
22 | Mystic Permutation | Codeforces | Mystic Permutation | Level-3 | GNU C++14 |
23 | Array | Codeforces | Array | Level-3 | GNU C++14 |
24 | Sum of Digits | Codeforces | Sum of Digits | Level-3 | GNU C++14 |
25 | Laptops | Codeforces | Laptops | Level-3 | GNU C++14 |
26 | The Clock | Codeforces | The Clock | Level-3 | GNU C++14 |
27 | The Attack of Knight | CodeChef | The Attack of Knight | Level-3 | GNU C++14 |
28 | The Fibonacci Segment | Codeforces | The Fibonacci Segment | Level-3 | GNU C++14 |
29 | Reversal Sorting | CodeChef | Reversal Sorting | Level-3 | GNU C++14 |
30 | Sereja and Array | Codeforces | Sereja and Array | Level-3 | GNU C++14 |
31 | Dima and Staircase | Codeforces | Dima and Staircase | Level-3 | GNU C++14 |
32 | Is this priority or parity | CodeChef | Is this priority or parity | Level-3 | GNU C++14 |
33 | Black and White Stripe | Codeforces | Black and White Stripe | Level-3 | GNU C++14 |
34 | Unlucky Ticket | Codeforces | Unlucky Ticket | Level-3 | GNU C++14 |
35 | Prof. Slim | Codeforces | Prof. Slim | Level-3 | GNU C++14 |
36 | Hungry Chef | CodeChef | Hungry Chef | Level-3 | GNU C++14 |
37 | Lucky Sum | Codeforces | Lucky Sum | Level-3 | GNU C++14 |
38 | Find Marbel | Codeforces | Find Marbel | Level-3 | GNU C++14 |
39 | Queen Blocks | CodeChef | Queen Blocks | Level-3 | GNU C++14 |
40 | Cosmic Tables | Codeforces | Cosmic Tables | Level-3 | GNU C++14 |
41 | Lucky Sum Digits | Codeforces | Lucky Sum Digits | Level-3 | GNU C++14 |
42 | Array2 | Codeforces | Array2 | Level-3 | GNU C++14 |
43 | Flag Day | Codeforces | Flag Day | Level-4 | GNU C++14 |
44 | Sort the Array | Codeforces | Sort the Array | Level-4 | GNU C++14 |
45 | Ilya and Queries | Codeforces | Ilya and Queries | Level-4 | GNU C++14 |
46 | Polo and Matrix | Codeforces | Polo and Matrix | Level-4 | GNU C++14 |
47 | Complementary XOR | Codeforces | Complementary XOR | Level-4 | GNU C++14 |
String
# | Title | Online Judge | Problem Link | Level | Solution |
---|---|---|---|---|---|
1 | Letter | Codeforces | Letter | Level-2 | GNU C++14 |
2 | Xenia and Divisors | Codeforces | Xenia and Divisors | Level-2 | GNU C++17 |
3 | Different is Good | Codeforces | Different is Good | Level-2 | GNU C++17 |
4 | Zero Ones Equal One Zeros | CodeChef | Zero Ones Equal One Zeros | Level-2 | GNU C++14 |
5 | Erasing Zeroes | Codeforces | Erasing Zeroes | Level-2 | GNU C++14 |
6 | Palindrome Problem | CodeChef | Palindrome Problem | Level-2 | GNU C++14 |
7 | Color with Occurrences | CodeChef | Color with Occurrences | Level-3 | GNU C++14 |
8 | Jumping on Tiles | Codeforces | Jumping on Tiles | Level-3 | GNU C++14 |
9 | Minimum Notation | Codeforces | Minimum Notation | Level-3 | GNU C++14 |
Greedy
# | Title | Online Judge | Problem Link | Level | Solution |
---|---|---|---|---|---|
1 | Chewbaсca and Number | Codeforces | Chewbaсca and Number | Level-1 | GNU C++17 |
2 | Dragons | Codeforces | Dragons | Level-2 | GNU C++17 |
3 | Little Girl and Game | Codeforces | Little Girl and Game | Level-2 | GNU C++17 |
4 | Beat The Odds | Codeforces | Beat The Odds | Level-2 | GNU C++17 |
5 | Building Permutation | Codeforces | Building Permutation | Level-3 | GNU C++17 |
6 | Robots | Codeforces | Robots | Level-3 | GNU C++14 |
7 | Array Decrements | Codeforces | Array Decrements | Level-3 | GNU C++14 |
8 | Roma and Changing Signs | Codeforces | Roma and Changing Signs | Level-3 | GNU C++14 |
9 | Shoe Shuffling | Codeforces | Shoe Shuffling | Level-3 | GNU C++14 |
10 | Appleman and Card Game | Codeforces | Appleman and Card Game | Level-3 | GNU C++14 |
11 | Mystic Permutation | Codeforces | Mystic Permutation | Level-3 | GNU C++14 |
12 | TL | Codeforces | TL | Level-3 | GNU C++14 |
13 | Fixing Typos | Codeforces | Fixing Typos | Level-3 | GNU C++14 |
14 | Sort Zero | Codeforces | Sort Zero | Level-3 | GNU C++14 |
15 | Birthday | Codeforces | Birthday | Level-3 | GNU C++14 |
16 | Glory Addicts | Codeforces | Glory Addicts | Level-3 | GNU C++14 |
17 | Digital Logarithm | Codeforces | Digital Logarithm | Level-3 | GNU C++14 |
18 | Removing Multiples | Codeforces | Removing Multiples | Level-3 | GNU C++14 |
19 | Vanya and Exams | Codeforces | Vanya and Exams | Level-3 | GNU C++14 |
20 | Guess a number! | Codeforces | Guess a number! | Level-3 | GNU C++14 |
21 | Hall of Fame | Codeforces | Hall of Fame | Level-3 | GNU C++14 |
Math
# | Title | Online Judge | Problem Link | Level | Solution |
---|---|---|---|---|---|
1 | Yaroslav and Permutations | Codeforces | Yaroslav and Permutations | Level-2 | GNU C++14 |
2 | Sum of Round Numbers | Codeforces | Sum of Round Numbers | Level-2 | GNU C++14 |
3 | Permutation Chain | Codeforces | Permutation Chain | Level-2 | GNU C++14 |
4 | Numbers on Whiteboard | Codeforces | Numbers on Whiteboard | Level-2 | GNU C++14 |
5 | Increase and deceease | Codeforces | Increase and deceease | Level-3 | GNU C++14 |
6 | Domino | Codeforces | Domino | Level-3 | GNU C++14 |
7 | 3SUM | Codeforces | 3SUM | Level-3 | GNU C++14 |
8 | Palindromic Numbers | Codeforces | Palindromic Numbers | Level-3 | GNU C++14 |
9 | Reduce to zero | CodeChef | Reduce to zero | Level-3 | GNU C++14 |
10 | Difference of GCDs | Codeforces | Difference of GCDs | Level-3 | GNU C++14 |
11 | Sum of Product 1 | CodeChef | Sum of Product 1 | Level-3 | GNU C++14 |
12 | Dreamoon and WiFi | Codeforces | Dreamoon and WiFi | Level-3 | GNU C++14 |
13 | Mathematical Circus | Codeforces | Mathematical Circus | Level-3 | GNU C++14 |
14 | Simple Molecules | Codeforces | Simple Molecules | Level-3 | GNU C++14 |
15 | Sport Mafia | Codeforces | Sport Mafia | Level-3 | GNU C++14 |
16 | Adding Digits | Codeforces | Adding Digits | Level-4 | GNU C++14 |
17 | Ciel and Flowers | Codeforces | Ciel and Flowers | Level-4 | GNU C++14 |
Number Theory
# | Title | Online Judge | Problem Link | Level | Solution |
---|---|---|---|---|---|
1 | T-Primes | Codeforces | T-Primes | Level-2 | GNU C++14 |
2 | Array Reodering | Codeforces | Array Reodering | Level-2 | GNU C++14 |
3 | Divisible by i | CodeChef | Divisible by i | Level-3 | GNU C++14 |
4 | Jogging | CodeChef | Jogging | Level-3 | GNU C++14 |
5 | Possible GCD | CodeChef | Possible GCD | Level-3 | GNU C++14 |
6 | Easy Number Challenge | Codeforces | Easy Number Challenge | Level-3 | GNU C++14 |
7 | Maximize Difference | CodeChef | Maximize Difference | Level-3 | GNU C++14 |
8 | Different Divisors | Codeforces | Different Divisors | Level-3 | GNU C++14 |
9 | Fox Dividing Cheese | Codeforces | Fox Dividing Cheese | Level-4 | GNU C++14 |
10 | Little Dima and Equation | Codeforces | Little Dima and Equation | Level-4 | GNU C++14 |
11 | Prime Matrix | Codeforces | Prime Matrix | Level-4 | GNU C++14 |
11 | Add Modulo 10 | Codeforces | Add Modulo 10 | Level-4 | GNU C++14 |
Two Pointer
# | Title | Online Judge | Problem Link | Level | Solution |
---|---|---|---|---|---|
1 | 2^Sort | Codeforces | 2^Sort | Level-3 | GNU C++14 |
2 | Books | Codeforces | Books | Level-3 | GNU C++14 |
3 | Ternary String | Codeforces | Ternary String | Level-3 | GNU C++14 |
4 | Eating Candies | Codeforces | Eating Candies | Level-3 | GNU C++14 |
5 | Friends and the Restaurant | Codeforces | Friends and the Restaurant | Level-3 | GNU C++14 |
6 | Points on Line | Codeforces | Points on Line | Level-3 | GNU C++14 |
Binary Search
# | Title | Online Judge | Problem Link | Level | Solution |
---|---|---|---|---|---|
1 | Rank List | Codeforces | Rank List | Level-3 | GNU C++14 |
2 | Perfect Team | Codeforces | Perfect Team | Level-3 | GNU C++14 |
3 | Interesting drink | Codeforces | Interesting drink | Level-3 | GNU C++14 |
4 | Frog Jumps | Codeforces | Frog Jumps | Level-3 | GNU C++14 |
5 | Hamburgers | Codeforces | Hamburgers | Level-4 | GNU C++14 |
6 | Letters | Codeforces | Letters | Level-4 | GNU C++14 |
7 | Eating Queries | Codeforces | Eating Queries | Level-4 | GNU C++14 |
Range Minimum Query
# | Title | Online Judge | Problem Link | Level | Solution |
---|---|---|---|---|---|
1 | Maximum Sum | Codeforces | Maximum Sum | Level-2 | GNU C++14 |
2 | Counting Rectangles | Codeforces | Counting Rectangles | Level-3 | GNU C++14 |
Dynamic Programming
# | Title | Online Judge | Problem Link | Level | Solution |
---|---|---|---|---|---|
1 | Build Permutation | Codeforces | Build Permutation | Level-3 | GNU C++14 |
2 | Boredom | Codeforces | Boredom | Level-3 | GNU C++14 |
3 | George and Job | Codeforces | George and Job | Level-3 | GNU C++14 |
Graph
# | Title | Online Judge | Problem Link | Level | Solution |
---|---|---|---|---|---|
1 | Road Construction | Codeforces | Road Construction | Level-2 | GNU C++14 |
2 | Split Into Two Sets | Codeforces | Split Into Two Sets | Level-3 | GNU C++14 |