Skip to content

This repository consists the solutions of daily solved DSA questions under #DailyDSAWithSPG challenge.

Notifications You must be signed in to change notification settings

shivaprasadgurram/DailyDSA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 

Repository files navigation

DailyDSA -> Paused updating this repo.

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.

JANUARY 2022

Day Date Topic(s) Difficulty Problem(s) Solution 1 Solution 2
1 01/01/2022 Array Easy βœ… TwoSum Click
2 02/01/2022 Array Easy βœ… Final Value of Variable After Performing Operations
Left Rotation
Click
Click
Click
3 03/01/2022 Array,String Easy βœ… Find Lucky Integer
First Unique Character
Click
Click
4 04/01/2022 Array Easy βœ… Binary Array Sorting
Move all negative elements to end
Click
Click
Click
5 05/01/2022 Array Easy βœ… Remove Element
Missing Number
Click
Click
6 06/01/2022 Array Easy βœ… Move Zeroes
Shuffle the Array
Click
Click
7 07/01/2022 Array Easy βœ… Merge Sorted Array
Remove Duplicates from Sorted Array
Click
Click
8 08/01/2022 Linked List Easy βœ… Convert Binary Number in a Linked List to Integer
Delete Node in a Linked List
Click
Click
9 09/01/2022 Linked List Easy βœ…, Medium 🟧 Add Two Numbers
Remove Nth Node From End of List
Reverse Linked List
Click
Click
Click
10 10/01/2022 Linked List Easy βœ…, Medium 🟧 Design Linked List
Merge Two Sorted Lists
Click
Click
11 11/01/2022 Linked List Medium 🟧 Remove Duplicates from Sorted List II
Delete the Middle Node of a Linked List
Click
Click
12 12/01/2022 Linked List Easy βœ…, Medium 🟧 Rotate List
Intersection of Two Linked Lists
Click
Click
13 13/01/2022 Linked List Easy βœ… Linked List Cycle Click
14 14/01/2022 Linked List Medium 🟧 Linked List Cycle II Click
15 15/01/2022 Linked List Easy βœ… Palindrome Linked List
Remove Linked List Elements
Click
Click
Click
16 16/01/2022 Linked List Medium 🟧,Easy βœ… Swapping Nodes in a Linked List
Remove Duplicates from Sorted List
Reverse Linked List II
Click
Click
Click
Click
17 17/01/2022 Linked List Medium 🟧 Odd Even Linked List Click Click
18 18/01/2022 Linked List Medium 🟧 Swap Nodes in Pairs Click
19 19/01/2022 Linked List Medium 🟧 Copy List with Random Pointer
Remove loop in Linked List
Click
Click
20 20/01/2022 Linked List Hard πŸŸ₯ Reverse Nodes in k-Group Click
21 21/01/2022 Linked List Medium 🟧 Merge In Between Linked Lists
Split Linked List in Parts
Click
Click
22 22/01/2022 Recursion Easy βœ… Power of Two
Power of Four
Click
Click
23 23/01/2022 Recursion Easy βœ…,Medium 🟧 Tower Of Hanoi
Reverse Linked List
Fibonacci Number
Click
Click
Click
24 24/01/2022 Recursion Easy βœ…,Medium 🟧 Subsets
Reverse String
Click
Click
25 25/01/2022 Recursion Medium 🟧 Pow(x, n) Click Click
26 26/01/2022 Recursion Medium 🟧 Permutations
Permutations - String
Click
Click
27 27/01/2022 Recursion Medium 🟧 Decode String Click
28 28/01/2022 Due to health issue, Not solved a problem NA NA NA NA
29 29/01/2022 Recursion Medium 🟧,Easy βœ… K-th Symbol in Grammar
Check if array is sorted
Click
Click
30 30/01/2022 Recursion & BT Medium 🟧 Combinations
Combination Sum
Click
Click
31 31/01/2022 Recursion & BT Medium 🟧 Combination Sum II Click

February 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

About

This repository consists the solutions of daily solved DSA questions under #DailyDSAWithSPG challenge.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages