For Longest Common Substring, it would make sense to explicitly state that the String.contains() method cannot be used - because that’s not obvious and there is a non-trivial solution that utilizes the String.contains() method as well, re:
" Problem statement
Given two strings, s1
and s2
, write a function that finds and returns the length of the longest substring of s2
and s1
(if any exist)."
Course: https://www.educative.io/collection/10370001/5347133077061632
Lesson: https://www.educative.io/collection/page/10370001/5347133077061632/4993289797238784
Course: https://www.educative.io/collection/10370001/5347133077061632
Lesson: https://www.educative.io/collection/page/10370001/5347133077061632/4993289797238784