Skip to content

Commit 730059e

Browse files
authored
Fixed two misspellings in O(n!) example
1 parent 12471a2 commit 730059e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Big-O Notation.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ Below are some examples for each category of performance:
132132
The most trivial example of function that takes O(n!) time is given below.
133133

134134
```swift
135-
func nFacFunc(n: Int) {
135+
func nFactFunc(n: Int) {
136136
for i in stride(from: 0, to: n, by: 1) {
137-
nFactFunc(n - 1)
137+
nFactFunc(n: n - 1)
138138
}
139139
}
140140
```

0 commit comments

Comments
 (0)