Ankur
Ankur @Ankur04442038 ยท
Day 67 | DSA Problem: House Robber โ€ข Rob houses in a row without robbing adjacent ones โ€ข DP: max = max(curr + rob1, rob2) โ€ข rob1 โ†’ prev prev max, rob2 โ†’ prev max โ€ข Return max money robbed โ€ข Time: O(n), Space: O(1) #Java #Leetcode #DynamicProgramming
7
Barshan Burman
Barshan Burman @barshanburman_7 ยท
Day 13โ€” GFG POTD ๐Ÿซ (HARD) Chocolates Pickup ๐Ÿค–๐Ÿค– ๐Ÿง  3D DP โ€” Multi-robot grid traversal โœ” State: (row, c1, c2) โœ” 9 transitions per step โœ” Avoid double counting Hard problems = real growth ๐Ÿ’€๐Ÿ”ฅ @geeksforgeeks #GFGPOTD #DSA #DynamicProgramming #CodingJourneyNZTqp9
9
Ankur
Ankur @Ankur04442038 ยท
Day 66 | DSA โ€ข Problem: Climb n stairs (1 or 2 steps) โ€ข DP: dp[i] = dp[i-1] + dp[i-2] โ€ข Base: dp[0]=1, dp[1]=1 โ€ข Count ways to reach top โ€ข Time: O(n), Space: O(n) #Java #Leetcode #DynamicProgramming
8
Adinath Ugale
Adinath Ugale @Aadi_Ugale_77 ยท
2 robots ๐Ÿค– 1 grid ๐Ÿซ 9 choices every stepโ€ฆ Sounds easy? Itโ€™s a Hard DP problem ๐Ÿ˜ฎโ€๐Ÿ’จ Learned how to think in 3D DP states (i, j1, j2) today ๐Ÿง  This is not just codingโ€ฆ this is strategy. #KeepCoding #DSA #DynamicProgramming #100DaysOfCodeDJMSp
3
Mr Akash
Mr Akash @aakash_poddar_ ยท
Day 39/60 โ€“ GFG POTD ๐Ÿš€ Solved Chocolates Pickup (Hard) ๐Ÿซ ๐Ÿ‘‰ Applied 3D DP (row, col1, col2) ๐Ÿ‘‰ Explored 9 moves at each step ๐Ÿ‘‰ Optimized to 2D DP Great problem for multi-agent DP & grid traversal ๐Ÿ’ก @geeksforgeeks @NPCI_NPCI #GFGPOTD #DSA #DynamicProgramming #CodingaMmaPQ
23
Mohd_Faizan_Navi
Mohd_Faizan_Navi @NaviMohd70240 ยท
Most people fail Cherry Pickup II because they try to move Alice and Bob one after the other. โŒ The secret? Move them simultaneously. Since they always stay on the same row, you only need 3 variables (i, j1, j2) to track everything. #365DaysOfCode #DynamicProgramming #Day146
2