Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Comparison by position and value

by ambrus (Abbot)
on Jan 02, 2005 at 11:25 UTC ( #418775=note: print w/replies, xml ) Need Help??


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 (Pope) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://418775]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2020-06-02 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (17 votes). Check out past polls.

    Notices?