count substringmatch and countsubstring match recurse
Posted
by micky
on Stack Overflow
See other posts from Stack Overflow
or by micky
Published on 2010-06-17T03:48:20Z
Indexed on
2010/06/17
3:53 UTC
Read the original article
Hit count: 153
python
Write two functions, called countSubStringMatch and countSubStringMatchRecursive that take two arguments, a key string and a target string. These functions iteratively and recursively count the number of instances of the key in the target string.
© Stack Overflow or respective owner