DEV Community

Discussion on: String matching (KMP algorithm)

Collapse
 
girish3 profile image
Girish Budhwani

KMP algorithm solves in linear time for generic case. You can apply KMP algorithm in your case as well.