Skip to content

Commit

Permalink
Fixed two misspellings in O(n!) example
Browse files Browse the repository at this point in the history
  • Loading branch information
APKaramyshev authored Apr 21, 2018
1 parent 12471a2 commit 730059e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Big-O Notation.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ Below are some examples for each category of performance:
The most trivial example of function that takes O(n!) time is given below.

```swift
func nFacFunc(n: Int) {
func nFactFunc(n: Int) {
for i in stride(from: 0, to: n, by: 1) {
nFactFunc(n - 1)
nFactFunc(n: n - 1)
}
}
```
Expand Down

0 comments on commit 730059e

Please sign in to comment.