Блог пользователя red_coder

Автор red_coder, 11 лет назад, По-английски

hey guys i am finding it a bit difficult to understand KMP algo. I tried Cormen, Topcoder and many pdf's but still i am not able to grap the logic behind its working. Can anyone help :)

  • Проголосовать: нравится
  • -3
  • Проголосовать: не нравится

»
11 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I think there is problem with array indexing. from 0 to n — 1, or from 1 to n. code