Arc Forumnew | comments | leaders | submitlogin
2 points by zck 4624 days ago | link | parent

So if we enter the for loop, we know there is a difference between the two sequences.

So we just need to find an index position i where (isnt seq1.i seq2.i) is true. If indexing off the end of a string causes an error, we need to put in code to prevent that. If indexing off the end of a string returns anything that can't be an element of the string, we can compare each index i until we find a difference, knowing that we'll eventually find one.



1 point by jsgrahamus 4624 days ago | link

Correct.

-----