X165: strDist

Given a string str and a non-empty substring sub, compute recursively the largest substring which both starts and ends with sub and return its length.

Reset

Practice a different Java exercise