X164: strCopies

Given a string and a non-empty substring sub, compute recursively if at least n copies of sub appear in the string somewhere, possibly overlapping each other. The given n will be non-negative.

Reset

Practice a different Java exercise