You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,9 @@ nothing but fibonacci series.
179
179
- Most problems involving strings can be taken as S(i,j), either we compare last characters then if equal
180
180
it gets converted to i-1,j-1 or we take min or max of i,j-1 and i-1,j
181
181
- Somtimes if the problem is already a table, you need to reverse engineer it to find the min number of ways to do something. Example create a new table and start from the very bottom and construct the solution updwards. Answer in that case will be the cell 0,0
182
+
- If a string and its reversal have a common subsequence, then definately that common subsequence is going to be a palindrome
183
+
- Whenever a problem is given involving string, check if LCS can be used
184
+
- Whenever a generic problem is given check if it is becoming a fibonacci series or a form of it.
182
185
183
186
# Topic0: Programming Questions
184
187
@@ -403,6 +406,7 @@ it gets converted to i-1,j-1 or we take min or max of i,j-1 and i-1,j
403
406
-[Given an amount and some coints, find out in how many ways can this amount be formed](/dynamic-programming/question26.c)
404
407
-[Given a 2xn board and tiles of size 2x1, count the number of ways to fill the board using 2x1 tiles](/dynamic-programming/question27.c)
405
408
-[Given a cost matrix mxn having a cost at each cell. Find the min cost that it will take to reach cell (m-1,n-1) from top left corner cell (0,0) if the only allowed directions to move are right, down and diagnal down](/dynamic-programming/question28.c)
409
+
-[Given a string, find out if it becomes a palindrome or not after doing atmost k deletions](/dynamic-programming/question29.c)
0 commit comments