Skip to content

Commit

Permalink
Time: 17 ms (41.62%), Space: 9.1 MB (27.47%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Dipendra-Raghav committed Sep 4, 2023
1 parent 9ec054b commit cd8c0f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 0072-edit-distance/0072-edit-distance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Solution {

}
int minDistance(string word1, string word2) {
vector<vector<int>> dp(word1.size()+1,vector<int>(word2.size()+1,0));
vector<vector<int>> dp(word1.size()+1,vector<int>(word2.size()+1));
// return solve(word1,word2,0,0,dp);

for(int i=0;i<=word1.size();i++)
Expand Down

0 comments on commit cd8c0f2

Please sign in to comment.