On Fri, Sep 17, 2021 at 12:03 PM vl4deee11 <
vladboyc...@gmail.com> wrote:
>
> Yes, this algorithm is mainly used to quickly find a substring in a string. O(n+m), where n=len(string), m=len(substring). I can run some tests to check, and post them here. But I would also like to add the z algorithm itself, this will be useful mainly for competitive programmers, and it will become even more popular in competition.
I don't understand what it means to add the z algorithm itself, but if
you don't mean strings.Index then that does not seem like something
that belongs in the Go standard library. See
https://golang.org/doc/faq#x_in_std . It would be perfectly fine in
third party library that people can import.
Ian
> пятница, 17 сентября 2021 г. в 19:54:51 UTC+1, Ian Lance Taylor:
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
golang-nuts...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/40412bfb-ca84-4cf5-b094-710c10b00367n%40googlegroups.com.