✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Which of the following is a primary advantage of the Knuth-Morris-Pratt (KMP) algorithm over the naive string matching algorithm?