Test suite case 3 seems to be incorrect.
yeah, test case 3 should be [1 1 2 3 1 1 1 5 2 2] by my calculation
Sorry about that. Cut and paste fail.
Test case 3 is still incorrect.
I tried solving this in MATLAB & it gave correct answer for the 3rd test suite also
Calculate the Levenshtein distance between two strings
464 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
327 Solvers
Set some matrix elements to zero
293 Solvers
189 Solvers
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
236 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!