Question d’entretien chez Unthinkable

Longest common substring problem : worst case and best case time complexity