Overlap

Write a string function @max_overlap(s, t)@ that given two strings ss and tt returns the longest string that is a common prefix of ss and tt.

Sample session

Problem information

Author: ProAl

Generation: 2026-01-25T14:03:57.694Z

© Jutge.org, 2006–2026.
https://jutge.org