Substring algorithm

后端 未结 11 1479
小蘑菇
小蘑菇 2021-02-11 03:38

Can someone explain to me how to solve the substring problem iteratively?

The problem: given two strings S=S1S2S

11条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-11 03:58

    Here's a list of string searching algorithms

    Depending on your needs, a different algorithm may be a better fit, but Boyer-Moore is a popular choice.

提交回复
热议问题