@RailMinIndia@AshwiniVaishnaw
Train No. 12217 from Panvel to Surat is delayed by 3 hours, but no information has been shared regarding the cause. Requesting your intervention.
๐ Day 82 / #100DaysOfCode
โ Solved POTD on Leetcode!
~ Strange Printer
~ Use 3D DP to track state: (start, end, lastChar).
~ If characters match, skip to next index recursively.
~ Partition string and calculate minimum print operations.
โ Grind 75: 3Qs
#100Devs
๐ Day 81 / #100DaysOfCode
โ Solved POTD on Leetcode!
~ Stone Game II
~ Use 3D DP to store intermediate results
~ Recursively solve for each player and index
~ Maximize or minimize score based on the player's turn
โ Solved 4 Questions from Grind 75
#100Devs
๐ Day 80 / #100DaysOfCode
โ Solved POTD on Leetcode!
~ 2 Keys Keyboard
~ Factors based, Sieve of erasthoneses
~ Find all factors of n
~ Recursively solve subproblems using factors
~Store and update minimum steps in dp
โ Solved 6 Questions from Grind 75
#100Devs
๐ Day 79 / #100DaysOfCode
โ Solved POTD on Leetcode!
~ Ugly Number II
~ Brute App: Recursively check if the factors are 2,3,5
~ Better App: generate all the multiples using 2,3,5
~ use a pointer to update counter and store new multiples in array
โ Grind 75: 7Qs
#100Devs
๐ Day 78 / #100DaysOfCode
โ Solved POTD on Leetcode!
~ Maximum Number of Points with Cost
~ Initialize `dp` with first row values
~ Compute `leftMax` and `rightMax` for each column
~ Update `dp` with max left-right values plus current points
#100Devs
๐ Day 77 / #100DaysOfCode
โ Solved POTD on Leetcode!
~ Maximum Distance in Arrays
~ Greedy
~ store highest, second highest, lowest and second lowest
~ if highest and lowest exist in same array then,
~ max(highest-second lowest,second highest-lowest)
#100Devs
๐ Day 76 / #100DaysOfCode
โ Solved POTD on Leetcode!
~ Lemonade Change
~ Greedy
~ count 5 bills, for 10, offer only 5 as change,
~ for 20 offer 3*5 or 10+5 as change
#100Devs
๐ Day 73 / #100DaysOfCode
โ Solved POTD on Leetcode!
~ Kth Largest Element in a Stream
~ Class design
~ sort the data stream and place new elements at specified index.
โ SQL: Aggregate Functions