Skip to content

Commit 682d559

Browse files
committed
Update 0072-edit-distance.md
1 parent 74d53d4 commit 682d559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsa-solutions/lc-solutions/0000-0099/0072-edit-distance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Reason: We are using a recursion stack space(O(N+M)) and a 2D array ( O(N*M)).
110110
111111
### Approach 2: Iterative Dynamic Programming (Tabulation)
112112
113-
Concept: In the recursive logic, we set the base case too if(i<0 ) and if(j<0) but we can’t set the dp array’s index to -1. Therefore a hack for this issue is to shift every index by 1 towards the right.
113+
Concept: In the recursive logic, we set the base case too `if(i<0)` and if(j<0) but we can’t set the dp array’s index to -1. Therefore a hack for this issue is to shift every index by 1 towards the right.
114114
115115
#### Algorithm
116116

0 commit comments

Comments
 (0)