problem on strings, tuple strings

Posted by suresh on Stack Overflow See other posts from Stack Overflow or by suresh
Published on 2010-06-18T04:37:29Z Indexed on 2010/06/18 4:43 UTC
Read the original article Hit count: 226

Filed under:

Write a function, called constrainedMatchPair which takes three arguments: a tuple representing starting points for the first substring, a tuple representing starting points for the second substring, and the length of the first substring. The function should return a tuple of all members (call it n) of the first tuple for which there is an element in the second tuple (call it k) such that n+m+1 = k, where m is the length of the first substring. Complete the definition def constrainedMatchPair(firstMatch,secondMatch,length):

© Stack Overflow or respective owner

Related posts about python