Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Author Diego Vannelli
- def check(s,c,n):
- # @Param s: string
- # @Param c: string
- # @Param n: n
- if s[0]==c:
- return check(s[1:],c,n-1)
- if n<=0:
- return true
- else:
- return false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement