This repository consists the solutions of daily solved DSA questions from #DailyDSAWithSPG challenge.
Goal: Solve at least one problem in a day to keep away from interview fear, unemployement and to become a good problem solver.
My solutions are coded in JAVA language.
Challenge started on 1-JAN-2022 π― π― π―
Note: Due to some personal reasons, I didn't solve problems for approximately 1 month from 04/04/2022 to 02/05/2022.
Day | Date | Topic(s) | Difficulty | Problem(s) | Solution 1 | Solution 2 |
---|---|---|---|---|---|---|
32 | 01/02/2022 | Recursion | Easy β | Min & Max Element of an Array Remove Linked List Elements |
Click Click |
|
33 | 02/02/2022 | Recursion & BT | Medium π§ | Rat in a Maze Problem - I | Click | Click |
34 | 03/02/2022 | Recursion & BT | Hard π₯ | N-Queens | Click | |
35 | 04/02/2022 | Recursion & BT | Hard π₯,Easy β | N-Queens II Number of paths |
Click Click |
|
36 | 05/02/2022 | Dynamic Programming | Easy β | Climbing Stairs Fibonacci Number N-th Tribonacci Number |
Click Click Click |
Click Click |
37 | 06/02/2022 | Dynamic Programming | Easy β | Min Cost Climbing Stairs | Click | |
38 | 07/02/2022 | Dynamic Programming | Medium π§ | House Robber House Robber II |
Click Click |
|
39 | 08/02/2022 | Dynamic Programming | Medium π§ | Target Sum | Click | |
40 | 09/02/2022 | Dynamic Programming | Medium π§ | 0-1 Knapsack | Click | |
41 | 10/02/2022 | Dynamic Programming | Medium π§ | Partition Equal Subset Sum | Click | |
42 | 11/02/2022 | Dynamic Programming | Medium π§ | Coin Change Coin Change 2 |
Click Click |
|
43 | 12/02/2022 | Dynamic Programming | Easy β | Pascal's Triangle | Click | |
44 | 13/02/2022 | Dynamic Programming | Easy β | Rod Cutting | Click | |
45 | 14/02/2022 | Dynamic Programming | Medium π§ | Perfect Squares | Click | |
46 | 15/02/2022 | Dynamic Programming | Easy β ,Medium π§ | Best Time to Buy and Sell Stock Best Time to Buy and Sell Stock II |
Click Click |
|
47 | 16/02/2022 | Dynamic Programming | Hard π₯,Medium π§ | Best Time to Buy and Sell Stock III Best Time to Buy and Sell Stock IV Best Time to Buy and Sell Stock with Cooldown Best Time to Buy and Sell Stock with Transaction Fee |
Click Click Click Click |
|
48 | 17/02/2022 | Dynamic Programming | Medium π§ | Unique Paths | Click | |
49 | 18/02/2022 | Dynamic Programming | Medium π§ | Unique Paths II | Click | |
50 | 19/02/2022 | Dynamic Programming | Easy β | Reach a given score | Click | |
51 | 20/02/2022 | Dynamic Programming | Easy β | Nth catalan number | Click | |
52 | 21/02/2022 | Dynamic Programming | Medium π§ | Unique Binary Search Trees | Click | |
53 | 22/02/2022 | Dynamic Programming | Medium π§ | Delete and Earn | Click | |
54 | 23/02/2022 | Dynamic Programming | Easy β | Counting Bits | Click | |
55 | 24/02/2022 | Dynamic Programming | Easy β | Pascal's Triangle II | Click | |
56 | 25/02/2022 | Dynamic Programming | Medium π§ | Maximum path sum in matrix | Click | |
57 | 26/02/2022 | HashMap | Easy β | Frequencies of Limited Range Array Elements Jewels and Stones Intersection of Two Arrays |
Click Click Click |
|
58 | 27/02/2022 | HashMap | Medium π§,Easy β | Check If Array Pairs Are Divisible by k Count Number of Pairs With Absolute Difference K |
Click Click |
|
59 | 28/02/2022 | HashMap | Easy β | Common Elements | Click | |
60 | 01/03/2022 | HashMap | Easy β | Count the Number of Consistent Strings | Click | |
61 | 02/03/2022 | HashMap | Easy β | Check if All Characters Have Equal Number of Occurrences Sum of Unique Elements |
Click Click |
|
62 | 03/03/2022 | HashMap | Easy β | Check if the Sentence Is Pangram Kth Distinct String in an Array |
Click Click |
Click Click |
63 | 04/03/2022 | HashMap | Easy β | Largest subarray with 0 sum | Click | |
64 | 05/03/2022 | HashMap | Easy β ,Medium π§ | First element to occur k times Encode and Decode TinyURL |
Click Click |
|
65 | 06/03/2022 | HashMap | Medium π§ | Longest Substring Without Repeating Characters | Click | Click |
66 | 07/03/2022 | HashMap | Medium π§,Easy β | Making File Names Unique Destination City |
Click Click |
|
67 | 08/03/2022 | HashMap | Easy β | Unique Number of Occurrences Substrings of Size Three with Distinct Characters |
Click Click |
|
68 | 09/03/2022 | HashMap | Easy β | Distribute Candies | Click | |
69 | 10/03/2022 | HashMap | Medium π§ | Subarray Sum Equals K | Click | |
70 | 11/03/2022 | HashMap | Medium π§ | Group Anagrams | Click | |
71 | 12/03/2022 | HashMap | Easy β | Rings and Rods | Click | |
72 | 13/03/2022 | HashMap | Medium π§ | Continuous Subarray Sum | Click | |
73 | 14/03/2022 | HashMap | Easy β | Ransom Note | Click | |
74 | 15/03/2022 | HashMap | Easy β | Unique Morse Code Words | Click | |
75 - 86 | 16/03/2022 - 26/03/2022 | On Vacation | ||||
86 | 27/03/2022 | Strings | Medium π§,Easy β | Reverse words in a given string Permutations of a given string Remove Duplicates |
Click Click Click |
|
87 | 28/03/2022 | Strings | Easy β | Shuffle String Defanging an IP Address |
Click Click |
Click |
88 | 29/03/2022 | Strings | Easy β | Reverse Prefix of Word | Click | |
89 | 30/03/2022 | Strings | Easy β | Split a String in Balanced Strings | Click | |
90 | 31/03/2022 | Busy | ||||
91 | 01/04/2022 | Busy | ||||
92 | 02/04/2022 | Strings | Medium π§,Easy β | Partition Labels Generate a String With Characters That Have Odd Counts |
Click Click |
|
93 | 03/04/2022 | Strings | Medium π§ | Minimum Add to Make Parentheses Valid | Click | |
94 - 122 | 04/04/2022 - 02/05/2022 | Busy | ||||
123 | 03/05/2022 | Revision Day 1 | Easy β | Two Sum Contains Duplicate Single Number |
Click Click Click |
Click |
124 | 04/05/2022 | Revision Day 2 | Easy β | Linked List Cycle Valid Parentheses |
Click Click |
|
125 | 05/05/2022 | Revision Day 3 | Easy β | Merge Two Sorted Lists Reverse Linked List |
Click Click |
|
126 | 06/05/2022 | Revision Day 4 | Easy β | Palindrome Linked List | Click | |
127 | 07/05/2022 | Revision Day 5 | Easy β | Best Time to Buy and Sell Stock | Click | |
128 | 08/05/2022 | Revision Day 6 | Easy β | Counting Bits | Click | |
129 | 09/05/2022 | Revision Day 7 | Easy β | Maximum Subarray | Click | |
130 | 10/05/2022 | Revision Day 8 | Easy β | Climbing Stairs | Click | |
131 | 11/05/2022 | Revision Day 9 | Easy β | Search Insert Position | Click | |
132 | 12/05/2022 | Not Solved | ||||
133 | 13/05/2022 | Not Solved | ||||
134 | 14/05/2022 | Not Solved | ||||
135 | 15/05/2022 | |||||
136 | 16/05/2022 | |||||
137 | 17/05/2022 | |||||
138 | 18/05/2022 | |||||
139 | 19/05/2022 | |||||
140 | 20/05/2022 |