Cody

Solution 1928539

Submitted on 10 Sep 2019 by Nikolaos Nikolaou
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   Pass
str1 = 'spring'; str2 = 'strange'; d_correct = 3; assert(isequal(findDifference(str1,str2),d_correct))

bb = 'spring' aa = 'strange' d = 3

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

bb = 'this' aa = 'has' d = 2

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

bb = 'acgtacgtacgt' aa = 'acatacttgtact' d = 4

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

bb = 'fractapertornisem' aa = 'alfracchaperitonism' d = 7

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

bb = 'spring' aa = 'spring' d = 0

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

bb = 'qazwsxedcrfvtgb' aa = 'qazwsmedcvfr' d = 6