Arama Sonuçları: "#Dynamicprogramming"

20 sonuç
Kosar bibi
Kosar bibi@KosarBibi639·
DAY 102 Problem: LeetCode 1320 (Hard) Min total distance to type a word with 2 fingers on a 5x6 keyboard. DP state: (index, other finger pos) → 27 states. n≤300, O(n*27^2) works. #LeetCode #DynamicProgramming #Coding
Kosar bibi tweet mediaKosar bibi tweet mediaKosar bibi tweet media
English
0
0
2
8
Vivek kumar Verma
Vivek kumar Verma@vivekvermacse·
Day 33 of #100DaysOfCode 🚀 Solved LeetCode 198 & 213 (House Robber series). Practiced recursion → memoization → optimized DP and learned to handle circular cases by splitting into linear ones. Key takeaway: focus on states & transitions. #DSA #DynamicProgramming #LeetCode
Vivek kumar Verma tweet media
English
0
0
0
8
Vedant
Vedant@vedant_for7·
First in my bloodline grinding "Best Time to Buy and Sell Stock II", still clueless after endless dry runs, all while AI might make DSA irrelevant 🤸‍♂️🥀😭 #DynamicProgramming #imdone
English
0
0
1
26
Om Sonar
Om Sonar@ErOmsonar·
Started learning Dynamic Programming 🚀 Explored Fibonacci using Memoization (recursion) & Tabulation (loops), and applied the same logic to solve Climbing Stairs (LeetCode #70) 🪜 #DSA #DynamicProgramming #LeetCode
Om Sonar tweet mediaOm Sonar tweet mediaOm Sonar tweet media
English
0
0
0
9
Ankur
Ankur@Ankur04442038·
Day 75 | DSA Problem: Longest Common Subsequence • Find LCS of two strings • DP: dp[i][j]=1+dp[i-1][j-1] if match, else max(dp[i-1][j],dp[i][j-1]) • Time: O(m×n), Space: O(m×n) #Java #Leetcode #DynamicProgramming
Ankur tweet media
English
0
0
0
14
Code_Nik
Code_Nik@Nik_Coding10·
DP is hard, isn't it ?🥲 Solved some problem after struggling alot as for now my dp mindset is have to be intialized inside my brain.😁 will try to do more of it. Any Tips for dynamic Programming :) #LeetCode #DynamicProgramming #DSA
Code_Nik tweet mediaCode_Nik tweet media
English
0
0
10
278
Ankur
Ankur@Ankur04442038·
Day 74 | DSA Problem: Longest Increasing Subsequence • Find longest strictly increasing subsequence • DP: dp[i] = max(dp[j]+1) for j<i • Initialize dp[i]=1 for all • Track max length while iterating • Time: O(n²), Space: O(n) #Java #Leetcode #DynamicProgramming
Ankur tweet media
English
0
0
0
13
Mohd_Faizan_Navi
Mohd_Faizan_Navi@NaviMohd70240·
Stop trying to brute force signs (+/-) in the Target Sum problem. 🛑 It’s just a math trick! By splitting the array into two subsets (S_1 and S_2), the problem simplifies to: S_1 - S_2 = target S_1 = (totalSum+ target) / 2 #Day155 #DynamicProgramming #CPP
English
0
0
0
15
Ankur
Ankur@Ankur04442038·
Day 73 | DSA Problem: Maximum Product Subarray • Track max & min (handle negatives) • Swap effect when number is negative • max = max(curr, currmax, currmin) • Update result with max • Time: O(n), Space: O(1) #Java #Leetcode #DynamicProgramming
Ankur tweet media
English
0
0
0
10
Rushikesh Patil
Rushikesh Patil@Rushikesh_7972·
Day 15 of POTD streak 🔥 Solved: Painting Fence Used DP with two states (same & different colors) → Built recurrence for valid combinations Nice problem to understand state transitions #POTD #DSA #DynamicProgramming #CodingJourney
Rushikesh Patil tweet media
English
0
0
1
21