Skip to content

Commit 72ee49b

Browse files
edited Z-Algorithm README
1 parent 41712e0 commit 72ee49b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Z-Algorithm/README.markdown

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ The definition of the Z-Algorithm is inductive and it computes the elements of t
2626
This a simple description of the idea that is behind this algorithm. There are a few cases to manage when the use of pre-computed values cannot be directly applied and some comparisons are to be made.
2727

2828
Here is the code of the function that computes the Z-array:
29-
```
30-
swift
29+
```swift
3130
func ZetaAlgorithm(ptrn: String) -> [Int]? {
3231

3332
let pattern = Array(ptrn.characters)

0 commit comments

Comments
 (0)