December 2024 GFG SOLUTION
๐ Table of Contents ๐
For discussions, questions, or doubts related to this solution, please visit my LinkedIn: Any Questions. Thank you for your input, together, we strive to create a space where learning is a collaborative endeavor.
๐ฎYour feedback is valuable! Please consider leaving a ๐ star ๐ and sharing your thoughts in the comments.
Introduction๐
Solutions๐ก
Day 1: Non Repeating Character๐ข๐๐ญ
Day 2: Search Pattern (KMP Algorithm) ๐๐๐ง
Day 3: Min Chars to Add for Palindromeโ๏ธ๐ฌ๐
Day 4: Strings Rotations of Each Other๐๐ ๐
Day 5: Sort 0s, 1s, and 2s๐ฆ๐ข๐จ
Day 6: Find H-Index๐๐๐
Day 7: Count Inversions๐๐๐ข
Day 8: Overlapping Intervals๐ โฐ๐
Day 9: Insert Interval๐๐ฒโณ
Day 10: Non-overlapping Intervalsโ๏ธ๐โ
Day 11: Merge Without Extra Space ๐๐ซ๐ฆ
Day 12: Number of occurrence๐งฎ๐๐
Day 13: Sorted and Rotated Minimum๐ข๐๐
Day 14: Search in Rotated Sorted Array๐๐๐
Day 15: Peak Element๐๐โฐ๏ธ
Day 16: K-th Element of Two Arrays๐ข๐๐ฏ
Day 17: Aggressive Cows๐๐๐ฎ
Day 18: Allocate Minimum Pages๐๐๐
Day 20: Spirally traversing a matrix๐๐ข๐
Day 21: Rotate by 90 degree๐โฉ๏ธ๐๏ธ
Day 22: Search in a Row-Column sorted matrix๐๐ข๐
Day 24: Search in a sorted Matrix๐๐งฎ๐
Day 25: Set Matrix Zeroes๐ฆโฌ๐ข
Day 26: Two Sum - Pair with Given Sumโ๐ข๐งฉ
Day 27: Count pairs with given sum๐ข๐งฎ๐ ๏ธ
Day 28: Find All Triplets with Zero Sum๐ข๐๐ฏ
Day 29: Intersection of Two arrays with Duplicate Elements๐๐๐ค๐
Day 30: Union of Arrays with Duplicates๐๐ฆ๐
Day 31: Longest Consecutive Subsequence๐โโโณ๐ฏ
Introduction
This repository contains solutions to daily problems from GeeksforGeeks. Each day, a new problem is provided along with its solution.
Day 1(01 DEC) : Non Repeating Character
Day 2(02 DEC) : Search Pattern (KMP Algorithm)
Day 3(03 DEC) : Min Chars to Add for Palindrome
Day 4(04 DEC) : Strings Rotations of Each Other
Day 5(05 DEC) : Sort 0s, 1s, and 2s
Day 6(06 DEC) : Find H-Index
Day 7(07 DEC) : Count Inversions
Day 8(08 DEC) : Overlapping Intervals
Day 9(09 DEC) : Insert Interval
Day 10(10 DEC) : Non-overlapping Intervals
Day 11(11 DEC) : Merge Without Extra Space
Day 12(12 DEC) : Number of occurrence
Day 13(13 DEC) : Sorted and Rotated Minimum
Day 14(14 DEC) : Search in Rotated Sorted Array
Day 15(15 DEC) : Peak Element
Day 16(16 DEC) : K-th Element of Two Arrays
Day 17(17 DEC) : Aggressive Cows
Day 18(18 DEC) : Allocate Minimum Pages
Day 19(19 DEC) : Kth Missing Positive Number in a Sorted Array
Day 20(20 DEC) : Spirally traversing a matrix
Day 21(21 DEC) : Rotate by 90 degree
Day 22(22 DEC) : Search in a Row-Column sorted matrix
Day 23(23 DEC) : Search in a row-wise sorted matrix
Day 24(24 DEC) : Search in a sorted Matrix
Day 25(25 DEC) : Set Matrix Zeroes
Day 26(26 DEC) : Two Sum - Pair with Given Sum
Day 27(27 DEC) : Count pairs with given sum
Day 28(28 DEC) : Find All Triplets with Zero Sum
Day 29(29 DEC) : Intersection of Two arrays with Duplicate Elements
Day 30(30 DEC) : Union of Arrays with Duplicates
Day 31(31 DEC) : Longest Consecutive Subsequence
Last updated