-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Addition of 'Practice Problems' section to sidebar with topic-s…
…pecific question pages (#127) * feat: Add 'Practice Problems' section to sidebar with topic-specific question pages - Added a new 'Practice Problems' section in the sidebar - Created individual pages for questions covering various C++ topics: - Introductory Problems - Control Structure Problems - Arrays - Strings - Functions - Structures and Pointers - Sorting - Standard Template Library (STL) * moved practice problems to blogs section * updated sidebar positions of each day in docs * formatted slug and tags as suggested
- Loading branch information
1 parent
2d93bd7
commit 4174db0
Showing
9 changed files
with
243 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
slug: stl-problems | ||
title: STL Problems | ||
authors: [chaitanya] | ||
tags: ["30daysofcpp", "standard-template-library", "vectors", "sets", "maps","practice-problems","codeforces","hackerrank","geeksforgeeks","spoj"] | ||
--- | ||
|
||
- [Vector-STL](https://www.geeksforgeeks.org/problems/c-stl-set-1-vector/1) | ||
|
||
- [Sets-STL](https://www.hackerrank.com/challenges/cpp-sets/problem) | ||
|
||
- [Map-STL](https://www.hackerrank.com/challenges/cpp-maps/problem) | ||
|
||
- [Tom Riddle's Diary](https://codeforces.com/contest/855/problem/A) | ||
|
||
- [Find the frequency](https://www.geeksforgeeks.org/problems/find-the-frequency/1) | ||
|
||
- [Pretty Print](https://www.hackerrank.com/challenges/prettyprint/problem?isFullScreen=true) | ||
|
||
- [Twice Counter](https://www.geeksforgeeks.org/problems/twice-counter4236/1) | ||
|
||
- [Radio Station](https://codeforces.com/contest/918/problem/B) | ||
|
||
- [Dequeue-STL](https://www.hackerrank.com/challenges/deque-stl/problem) | ||
|
||
- [RPLD Database](https://www.spoj.com/problems/RPLD/) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
slug: array-problems | ||
title: Array Problems | ||
authors: [chaitanya] | ||
tags: ["30daysofcpp", "arrays", "practice-problems","leetcode","hackerrank","geeksforgeeks","edabit"] | ||
--- | ||
|
||
- [Array Introduction](https://www.hackerrank.com/challenges/arrays-introduction/problem?isFullScreen=true) | ||
|
||
- [Index Multiplier](https://edabit.com/challenge/QcDeF47azy5bhPos6) | ||
|
||
- [2D array](https://www.geeksforgeeks.org/problems/two-dimensional-world/1) | ||
|
||
- [Perfect Square Patch](https://edabit.com/challenge/omTRzwvBibk4etBkx) | ||
|
||
- [Merge two arrays](https://www.geeksforgeeks.org/problems/merge-two-sorted-arrays-1587115620/1) | ||
|
||
- [Peak Element](https://www.geeksforgeeks.org/problems/peak-element/1) | ||
|
||
- [Eliminate the odds](https://edabit.com/challenge/7iT6DbY3GsHnLBPq4) | ||
|
||
- [Variable Sized Array](https://www.hackerrank.com/challenges/variable-sized-arrays/problem?isFullScreen=true) | ||
|
||
- [Check if sorted](https://leetcode.com/problems/check-if-array-is-sorted-and-rotated/description/) | ||
|
||
- [Best time to buy and sell stock](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/description/) | ||
|
||
- [Search for the element](https://www.geeksforgeeks.org/problems/who-will-win-1587115621/1?utm_source=youtube&utm_medium=collab_striver_ytdescription&utm_campaign=who-will-win) | ||
|
||
- [Majority Element](https://leetcode.com/problems/majority-element/description/) | ||
|
||
- [Trapping rainwater](https://www.geeksforgeeks.org/problems/trapping-rain-water-1587115621/1) | ||
|
||
- [Pascal's Triangle](https://leetcode.com/problems/pascals-triangle/description/) | ||
|
||
- [Count Inversion](https://www.geeksforgeeks.org/problems/inversion-of-array-1587115620/1?utm_source=youtube&utm_medium=collab_striver_ytdescription&utm_campaign=inversion-of-array) |
43 changes: 43 additions & 0 deletions
43
blog/2024-06-03-control-structure-problems/control-structure-problems.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
slug: control-structure-problems | ||
title: Control Structure Problems | ||
authors: [chaitanya] | ||
tags: ["30daysofcpp", "control-flow", "conditionals", "loops", "jump-controls","practice-problems","geeksforgeeks","codechef","edabit"] | ||
--- | ||
|
||
## Conditionals | ||
|
||
- [Christmas? or not?](https://www.codechef.com/problems/CHRISTGREET) | ||
|
||
- [Find out how much the food costs](https://www.codechef.com/problems/FOODCOST) | ||
|
||
- [Equality of given numbers](https://edabit.com/challenge/uSiEPX7YrhNsqtzMr) | ||
|
||
- [Mango lassi](https://www.codechef.com/problems/MANGOLASSI) | ||
|
||
- [The farm problem](https://edabit.com/challenge/aADAoRtkbZWEKw9Ap) | ||
|
||
- [Reach on time](https://www.codechef.com/problems/TIMELY) | ||
|
||
- [Consonants and vowels](https://www.geeksforgeeks.org/problems/consonants-and-vowels-check/1) | ||
|
||
## Jump control | ||
|
||
- [Return number in words](https://www.geeksforgeeks.org/problems/c-switch-case-statement5900/1) | ||
|
||
## Loops | ||
|
||
- [Count the words](https://www.codechef.com/problems/CNTWRD) | ||
|
||
- [Reverse the digits](https://www.geeksforgeeks.org/problems/reverse-digit0316/1) | ||
|
||
- [LCM and GCD](https://www.geeksforgeeks.org/problems/lcm-and-gcd4516/1) | ||
|
||
- [Armstrong numbers](https://workat.tech/problem-solving/practice/armstrong-number) | ||
|
||
- [Palindrome numbers](https://www.geeksforgeeks.org/problems/palindrome0746/1) | ||
|
||
- [Prime numbers in range](https://www.geeksforgeeks.org/problems/find-prime-numbers-in-a-range4718/1) | ||
|
||
- [Patterns](https://www.geeksforgeeks.org/problems/pattern/1) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
slug: function-structure-problems | ||
title: Function Problems | ||
authors: [chaitanya] | ||
tags: ["30daysofcpp", "functions", "practice-problems","leetcode","hackerrank","geeksforgeeks","codechef","edabit"] | ||
--- | ||
|
||
- [Basic math functions](https://www.codechef.com/learn/course/cpp-beginner/BC00BC08/problems/BMMC08A) | ||
|
||
- [Repdigit or not](https://edabit.com/challenge/ciHft8ompLrYCyiEq) | ||
|
||
- [Sum of numbers](https://www.hackerrank.com/challenges/c-tutorial-functions/problem?isFullScreen=true) | ||
|
||
- [Coded words](https://edabit.com/challenge/7CaLzrWHhfzGw4CaT) | ||
|
||
- [Reverse and capitalize](https://edabit.com/challenge/mCfMS42XCvAGnH7q7) | ||
|
||
- [Compute with functions](https://www.codechef.com/learn/course/cpp/LTCCPP27/problems/CPPFUNC01) | ||
|
||
- [Print without loop](https://www.geeksforgeeks.org/problems/print-1-to-n-without-using-loops-1587115620/1?utm_source=youtube&utm_medium=collab_striver_ytdescription&utm_campaign=print-1-to-n-without-using-loops) | ||
|
||
- [Fibonacci Numnber](https://leetcode.com/problems/fibonacci-number/description/) | ||
|
||
- [Factorial of numbers](https://www.geeksforgeeks.org/problems/find-all-factorial-numbers-less-than-or-equal-to-n3548/0?problemType=functional&difficulty%255B%255D=-1&page=1&query=problemTypefunctionaldifficulty%255B%255D-1page1) | ||
|
||
- [Power of two](https://leetcode.com/problems/power-of-two/description/) | ||
|
||
|
||
|
25 changes: 25 additions & 0 deletions
25
blog/2024-06-03-introductory-problems/introductory-problems.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
slug: introductory-problems | ||
title: Basic CPP Problems | ||
authors: [chaitanya] | ||
tags: ["30daysofcpp", "beginner", "operations", "input", "output","practice-problems","hackerrank","geeksforgeeks","codechef","edabit"] | ||
--- | ||
|
||
- [Say "Hello World!" with C++](https://hackerrank.com/challenges/cpp-hello-world/problem?isFullScreen=true) | ||
|
||
- [Read and print an Integer](https://www.codechef.com/problems/START01) | ||
|
||
- [Add two numbers](https://edabit.com/challenge/SFzHtm63XT6EYNHWY) | ||
|
||
- [Find the Size of various data types](https://www.geeksforgeeks.org/problems/data-type-1666706751/1?utm_source=youtube&utm_medium=collab_striver_ytdescription&utm_campaign=data-type) | ||
|
||
- [Return next digit](https://edabit.com/challenge/QgCMMMyMmckvHbfKv) | ||
|
||
- [Convert Minutes into Seconds](https://edabit.com/challenge/MtNAJmJZ49i5Xf3AW) | ||
|
||
- [Maximum edge of a triangle](https://edabit.com/challenge/56XXwAkLJGbEccYfn) | ||
|
||
- [Clear day](https://www.codechef.com/problems/CLEARDAY) | ||
|
||
- [Double the rent](https://www.codechef.com/problems/DOUBLERENT) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
slug: sorting-problems | ||
title: Sorting Problems | ||
authors: [chaitanya] | ||
tags: ["30daysofcpp", "sorting","practice-problems","leetcode","codeforces","geeksforgeeks"] | ||
--- | ||
|
||
- [Gravity Flip](https://codeforces.com/problemset/problem/405/A) | ||
|
||
- [Honest Coach](https://codeforces.com/problemset/problem/1360/B) | ||
|
||
- [Selection Sort](https://www.geeksforgeeks.org/problems/selection-sort/1?utm_source=youtube&utm_medium=collab_striver_ytdescription&utm_campaign=selection-sort) | ||
|
||
- [Majority element](https://leetcode.com/problems/majority-element/description/) | ||
|
||
- [Bubble Sort](https://www.geeksforgeeks.org/problems/bubble-sort/1?utm_source=youtube&utm_medium=collab_striver_ytdescription&utm_campaign=bubble-sort) | ||
|
||
- [Quick Sort](https://www.geeksforgeeks.org/problems/quick-sort/1?utm_source=youtube&utm_medium=collab_striver_ytdescription&utm_campaign=quick-sort) | ||
|
||
- [Merge Sorted Array](https://leetcode.com/problems/merge-sorted-array/description/) | ||
|
||
- [Symmetric Encoding](https://codeforces.com/problemset/problem/1974/B) | ||
|
||
- [Insertion Sort](https://www.geeksforgeeks.org/problems/insertion-sort/0?category%5B%5D=Algorithms&page=1&query=category%5B%5DAlgorithmspage1&utm_source=youtube&utm_medium=collab_striver_ytdescription&utm_campaign=insertion-sort) | ||
|
||
- [Sort Colors](https://leetcode.com/problems/sort-colors/description/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
slug: string-problems | ||
title: String Problems | ||
authors: [chaitanya] | ||
tags: ["30daysofcpp", "strings","practice-problems","leetcode","codeforces","geeksforgeeks","codechef","edabit"] | ||
--- | ||
|
||
- [DNA Storage](https://www.codechef.com/practice/course/strings/STRINGS/problems/DNASTORAGE) | ||
|
||
- [Way too long words](https://codeforces.com/problemset/problem/71/A) | ||
|
||
- [Remove outermost parantheses](https://leetcode.com/problems/remove-outermost-parentheses/description/) | ||
|
||
- [Anagram](https://geeksforgeeks.org/problems/anagram-1587115620/1?page=1&category=Strings&sortBy=submissions) | ||
|
||
- [Verify Password](https://codeforces.com/contest/1976/problem/A) | ||
|
||
- [Blobby Volley Scores](https://www.codechef.com/practice/course/strings/STRINGS/problems/BLOBBYVOLLEY) | ||
|
||
- [Reverse every word in a string](https://leetcode.com/problems/reverse-words-in-a-string/description/) | ||
|
||
- [Dubstep](https://codeforces.com/problemset/problem/208/A) | ||
|
||
- [White Spaces](https://edabit.com/challenge/df9LtdceySMvqQJtW) | ||
|
||
- [Longest Common Prefix](https://leetcode.com/problems/longest-common-prefix/description/) | ||
|
||
- [Count number of substrings](https://www.geeksforgeeks.org/problems/count-number-of-substrings4528/1?utm_source=youtube&utm_medium=collab_striver_ytdescription&utm_campaign=count-number-of-substrings) | ||
|
||
- [Double Character Swap](https://edabit.com/challenge/s695FkhRd3J65tmdQ) | ||
|
||
- [Validate an IP Adress](https://www.geeksforgeeks.org/problems/validate-an-ip-address-1587115621/1?page=1&category=Strings&sortBy=submissions) | ||
|
||
- [String to Integer](https://leetcode.com/problems/string-to-integer-atoi/description/) | ||
|
||
- [Roman to Integer](https://leetcode.com/problems/roman-to-integer/description/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
slug: structure-problems | ||
title: Structures and Pointers Problems | ||
authors: [chaitanya] | ||
tags: ["30daysofcpp", "struct", "pointer","practice-problems","hackerrank","geeksforgeeks","codechef"] | ||
--- | ||
|
||
- [Cataloging Books](https://www.codechef.com/learn/course/college-oops-cpp/CPOPCPP05/problems/PPSCPP227) | ||
|
||
- [Student Details](https://www.hackerrank.com/challenges/c-tutorial-struct/problem) | ||
|
||
- [Structs and Objects](https://www.geeksforgeeks.org/problems/structs-and-objects/1) | ||
|
||
- [Pointer](https://www.hackerrank.com/challenges/c-tutorial-pointer/problem) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters