Longest Prefix Suffix | String | KMP Algorithm | GFG POTD | C++ | Java | Code Kar Lo

preview_player
Показать описание
Given a string of characters, find the length of the longest proper prefix which is also a proper suffix.

NOTE: Prefix and suffix can be overlapping but they should not be equal to the entire string.

0:00 Introduction
0:10 Problem Statement
0:45 Explanation
14:33 C++ Code
17:58 Java Code

gfg potd
gfg potd today
gfg problem of the day
potd gfg
potd
potd today
gfg

#dsa #datastructures #algorithm #gfg #potd #coding #array #strings #tree #binarysearchtree #codekarlo #dynamicprogramming
Рекомендации по теме
Комментарии
Автор

Thanks bhiyaa but one que agr same code likhuga to gfg wale cheat to ni samjhe ge or streak cancell to ni hogi

yuvrajsingh
Автор

i am applying same logic in python, and checked my code thrice, but still its giving me time exceed issue . please help me, can I achieve this code required complexity in python ?

rkyt