Cody

Problem 1032. compare strings

Given 2 strings and 3 actions (Insert,delete,replace) on characters. Find the difference between two strings.

Example:

string1 = 'spring'

string2 = 'strange'

replace(p,t), replace(i,a), insert(e) = 3 actions = 3 differences

so the answer is 3

Solution Stats

70.83% Correct | 29.17% Incorrect
Last solution submitted on Aug 09, 2014

Problem Comments

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more