in reply to Re^2: Comparison by position and value
in thread Comparison by position and value

I don't see your problem:

_8__3__19 v 48____7__ ? 0 ^ _8__3__19 v 4_8___7__ ? 1 _8__3__19 v 48_____7_ ? 0 ^ ^

For these strings at least, the result is 0 iff there is a clash of two digits somewhere.

Replies are listed 'Best First'.
Re^4: Comparison by position and value
by BrowserUk (Patriarch) on Jan 02, 2005 at 11:28 UTC

    The first two strings are compatible, because they only overlap (contain a digit in the same place) where the digit is the same in both strings. Please see the 3 examples in the OP.


    Examine what is said, not who speaks.
    Silence betokens consent.
    Love the truth but pardon error.