From 4174db0b81404c44d1c5f3613cf46f995f96a16c Mon Sep 17 00:00:00 2001 From: Chaitanya <139270341+Chaitanya-45@users.noreply.github.com> Date: Mon, 3 Jun 2024 23:21:22 +0530 Subject: [PATCH] feat: Addition of 'Practice Problems' section to sidebar with topic-specific 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 --- blog/2024-06-03-STL-problems/STL-problems.md | 27 ++++++++++++ .../array-problems.md | 36 ++++++++++++++++ .../control-structure-problems.md | 43 +++++++++++++++++++ .../function-problems.md | 29 +++++++++++++ .../introductory-problems.md | 25 +++++++++++ .../sorting-problems.md | 26 +++++++++++ .../string-problems.md | 36 ++++++++++++++++ .../structure-problems.md | 15 +++++++ blog/authors.yml | 6 +++ 9 files changed, 243 insertions(+) create mode 100644 blog/2024-06-03-STL-problems/STL-problems.md create mode 100644 blog/2024-06-03-array-problems/array-problems.md create mode 100644 blog/2024-06-03-control-structure-problems/control-structure-problems.md create mode 100644 blog/2024-06-03-function-problems/function-problems.md create mode 100644 blog/2024-06-03-introductory-problems/introductory-problems.md create mode 100644 blog/2024-06-03-sorting-problems/sorting-problems.md create mode 100644 blog/2024-06-03-string-problems/string-problems.md create mode 100644 blog/2024-06-03-structure-probelms/structure-problems.md diff --git a/blog/2024-06-03-STL-problems/STL-problems.md b/blog/2024-06-03-STL-problems/STL-problems.md new file mode 100644 index 000000000..a1ab3672d --- /dev/null +++ b/blog/2024-06-03-STL-problems/STL-problems.md @@ -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/) + diff --git a/blog/2024-06-03-array-problems/array-problems.md b/blog/2024-06-03-array-problems/array-problems.md new file mode 100644 index 000000000..85052bfd8 --- /dev/null +++ b/blog/2024-06-03-array-problems/array-problems.md @@ -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) \ No newline at end of file diff --git a/blog/2024-06-03-control-structure-problems/control-structure-problems.md b/blog/2024-06-03-control-structure-problems/control-structure-problems.md new file mode 100644 index 000000000..29ca8ba7f --- /dev/null +++ b/blog/2024-06-03-control-structure-problems/control-structure-problems.md @@ -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) + diff --git a/blog/2024-06-03-function-problems/function-problems.md b/blog/2024-06-03-function-problems/function-problems.md new file mode 100644 index 000000000..8319162a7 --- /dev/null +++ b/blog/2024-06-03-function-problems/function-problems.md @@ -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/) + + + diff --git a/blog/2024-06-03-introductory-problems/introductory-problems.md b/blog/2024-06-03-introductory-problems/introductory-problems.md new file mode 100644 index 000000000..de0c21602 --- /dev/null +++ b/blog/2024-06-03-introductory-problems/introductory-problems.md @@ -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) + diff --git a/blog/2024-06-03-sorting-problems/sorting-problems.md b/blog/2024-06-03-sorting-problems/sorting-problems.md new file mode 100644 index 000000000..65ced35fe --- /dev/null +++ b/blog/2024-06-03-sorting-problems/sorting-problems.md @@ -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/) \ No newline at end of file diff --git a/blog/2024-06-03-string-problems/string-problems.md b/blog/2024-06-03-string-problems/string-problems.md new file mode 100644 index 000000000..53205a37c --- /dev/null +++ b/blog/2024-06-03-string-problems/string-problems.md @@ -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/) \ No newline at end of file diff --git a/blog/2024-06-03-structure-probelms/structure-problems.md b/blog/2024-06-03-structure-probelms/structure-problems.md new file mode 100644 index 000000000..68ee62c19 --- /dev/null +++ b/blog/2024-06-03-structure-probelms/structure-problems.md @@ -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) + diff --git a/blog/authors.yml b/blog/authors.yml index 8f35aab30..0821aeafe 100644 --- a/blog/authors.yml +++ b/blog/authors.yml @@ -3,3 +3,9 @@ shubhadip: title: Admin @30DaysOfCPP url: https://dev.to/shubhadip_bhowmik image_url: https://avatars.githubusercontent.com/u/57017965?v=4 + +chaitanya: + name: G. Chaitanya Sravanthi + title: Contributor @30DaysOfCPP + url: https://www.linkedin.com/in/chaitanya-sravanthi-gatreddi/ + image_url: https://avatars.githubusercontent.com/u/139270341?v=4