Cody

# Problem 1032. compare strings

Solution 179414

Submitted on 19 Dec 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
%% str1 = 'spring'; str2 = 'strange'; d_correct = 3; assert(isequal(findDifference(str1,str2),d_correct))

```Error: Output argument "d" (and maybe others) not assigned during call to "/users/msssystem18/findDifference.m>findDifference". ```

2   Fail
%% str1 = 'this'; str2 = 'has'; d_correct = 2; assert(isequal(findDifference(str1,str2),d_correct))

```Error: Output argument "d" (and maybe others) not assigned during call to "/users/msssystem18/findDifference.m>findDifference". ```

3   Fail
%% str1 = 'acgtacgtacgt'; str2 = 'acatacttgtact'; d_correct = 4; assert(isequal(findDifference(str1,str2),d_correct))

```Error: Output argument "d" (and maybe others) not assigned during call to "/users/msssystem18/findDifference.m>findDifference". ```

4   Fail
%% str1 = 'fractapertornisem'; str2 = 'alfracchaperitonism'; d_correct = 7; assert(isequal(findDifference(str1,str2),d_correct))

```Error: Output argument "d" (and maybe others) not assigned during call to "/users/msssystem18/findDifference.m>findDifference". ```

5   Fail
%% str1 = 'spring'; str2 = 'spring'; d_correct = 0; assert(isequal(findDifference(str1,str2),d_correct))

```Error: Output argument "d" (and maybe others) not assigned during call to "/users/msssystem18/findDifference.m>findDifference". ```

6   Fail
%% str1 = 'qazwsxedcrfvtgb'; str2 = 'qazwsmedcvfr'; d_correct = 6; assert(isequal(findDifference(str1,str2),d_correct))

```Error: Output argument "d" (and maybe others) not assigned during call to "/users/msssystem18/findDifference.m>findDifference". ```