Skip to content

【leetcode】Q28实现strStr() #3

Description

@0xbitboy

暴力解法
1.按位匹配,每次发现首字母匹配则记录当前的位置,继续向后匹配。
2.如果匹配过程中发现不匹配了,则回到首字母匹配的位置+1 继续匹配。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions