find the length of the longest proper prefix which is also a suffix
Answers
Answered by
0
Input : aabcdaabc
Output : 4
The string "aabc" is the longest prefix which is also suffix.
Output : 4
The string "aabc" is the longest prefix which is also suffix.
Similar questions