problemscpp
A collection of my answers to algorithm problems in c++.
| 函数
leetcode::delete_operation_for_two_strings 命名空间参考

  1. Delete Operation for Two Strings
更多...

class  Solution
 

函数

 TEST (delete_operation_for_two_strings, case1)
 
 TEST (delete_operation_for_two_strings, case2)
 

详细描述

  1. Delete Operation for Two Strings

函数说明

◆ TEST() [1/2]

leetcode::delete_operation_for_two_strings::TEST ( delete_operation_for_two_strings  ,
case1   
)

在文件 leetcode_test.cpp3145 行定义.

3145 {
3146 const string s1 = "sea";
3147 const string s2 = "eat";
3148 ASSERT_EQ(2, Solution::minDistance(s1, s2));
3149 }

引用了 leetcode::delete_operation_for_two_strings::Solution::minDistance().

◆ TEST() [2/2]

leetcode::delete_operation_for_two_strings::TEST ( delete_operation_for_two_strings  ,
case2   
)

在文件 leetcode_test.cpp3151 行定义.

3151 {
3152 const string s1 = "leetcode";
3153 const string s2 = "etco";
3154 ASSERT_EQ(4, Solution::minDistance(s1, s2));
3155 }

引用了 leetcode::delete_operation_for_two_strings::Solution::minDistance().