Mayur Janjire (@mayu_twts) header
Mayur Janjire (@mayu_twts) profile picture

commit n code.....

Joined February 2024
Photo by Mayur Janjire (@mayu_twts)Photo by Mayur Janjire (@mayu_twts)Photo by Mayur Janjire (@mayu_twts)Photo by Mayur Janjire (@mayu_twts)Photo by Mayur Janjire (@mayu_twts)Photo by Mayur Janjire (@mayu_twts)Photo by Mayur Janjire (@mayu_twts)Photo by Mayur Janjire (@mayu_twts)Photo by Mayur Janjire (@mayu_twts)Photo by Mayur Janjire (@mayu_twts)
Winter Arc: Day 59 yesterday's problem got a sequel, and so did the learning! 3947 - Maximum Number of Items From Sale II (Medium) continued from yesterday's 3946, where I used 0/1 Knapsack DP to optimize item purchases.
3
5
180
today's Part II required a different approach: > Used divisibility-based counting to calculate free items. > Sorted items by price to prioritize cheaper purchases. > Applied greedy optimization to maximize the total number of items within the budget.
1
1
10
Winter Arc: Day 58 one more LeetCode daily challenge completed! 3946 - Maximum Number of Items From Sale I (Medium) explored a combination of 0/1 Knapsack DP and divisibility logic used divisibility conditions to calculate the number of free items unlocked by purchasing each
1
4
143
item type. > applied 0/1 Knapsack to maximize the total number of items within the given budget. > maintained DP states to ensure each item type contributes only once. #WinterArc #DSA #Java #DynamicProgramming #LeetCode #LearningInPublic
5
Winter Arc: Day 57 one more LeetCode daily challenge completed! 3360 - Stone Removal Game explored a simple game simulation where the number of stones removed decreases by one on every turn. the key was tracking the turns and using their parity to determine the winner.
1
4
32
Winter Arc: Day 56 today's DSA challenge was a tough one! 3934 - Smallest Unique Subarray (Hard) worked on finding the minimum-length subarray that doesn't have an identical counterpart anywhere else in the array. #WinterArc #DSA #Java #LeetCode #LearningInPublic
5
127
Winter Arc: Day 55 just one problem of the day today: 3411 - Maximum Subarray With Equal Products spent some time working through the problem and understanding the relationship between product, GCD, and LCM. the rest of the day went into end-sem preparation.
2
3
97
Mayur Janjire retweeted
first principles thinking. only skill that will last.
70
140
19
2,400
69,017
Winter Arc: Day 54 not the most productive day, with end-sem exams taking priority. Was able to managed to solve two dsa problems: 1352 - Product of the Last K Numbers 2243 - Calculate Digit Sum of a String
2
5
222
a little DSA alongside exam preparation. some days are about doing what you can rather than doing everything. keeping the streak alive. #WinterArc #DSA #Java #LeetCode #LearningInPublic
1
19
Winter Arc: Day 53 Solved 2 DSA problems 2125 - Number of Laser Beams in a Bank > practiced counting non-zero security devices across rows and calculating laser beams between consecutive non-empty rows.
2
4
81
2124 - Check if All A's Appears Before All B's > worked on checking character ordering and identifying whether a string follows the required pattern. keeping the consistency alive. #WinterArc #DSA #Java #LeetCode #LearningInPublic
1
16
Winter Arc: Day 52 two more LeetCode problems solved today. 75 - Sort Colors used the Dutch National Flag algorithm with three pointers (low, mid, high) to sort the array in-place. 54 - Spiral Matrix practiced boundary-based traversal using four pointers (top, bottom, left,
1
2
41
right) to visit matrix elements in spiral order. two different problems, but one common lesson: choosing the right traversal strategy makes all the difference. #WinterArc #DSA #Java #LeetCode #LearningInPublic
2
17
Winter Arc: Day 51 two more binary search problems checked off today. the interesting part was applying binary search beyond sorted arrays: 441-arranging coins : binary searching on the number of complete rows using the staircase sum formula.
2
4
75
278- first bad version: finding the leftmost occurrence of a bad version using a monotonic search space. both problems reinforced an important pattern: define the search space, check a condition, and eliminate half of the possibilities in each iteration.
1
16