This exercise will provide you with 2 numbers. The first number is the number of comparisons, the second number is the number of shifts. Shifts can be defined as when the substring realigns itself with the master string using the alignment array (that is, any shift larger than 1). Comparisons can be defined as comparing 2 characters between the master and substring. Start by entering a string you which to search (Max length: 14 chars), then enter the string you would like
to search for in the first string you entered.
Your Master String:
Your Sub String:
[started]
var x = checkAnswer();
if (!x && !guess[0])
return "";
else return x;