Help me out in this


@aa1 can you tell me why it is not showing output??

okay,let me go through it once

@aa1 sure have a look

@aa1 my logic is
find lps of pat+"#"+text where in lps[i]==pat.length is the last index of pattern accordingly i have subtracted to find starting position

@aa1 i have send some pic on your whatsapp