Help for this page
$string = "abc fghijklmn ";
$string = " b d fgh jklmno";
# correct answer is: "jklmn", 5 chars long;
# (next longest common substring is " fgh",
# but you're not interested in that)
$currentMatch = "";
# warn "match ended at @_ : lm=$longestMatch=\n";
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (210 votes),