Skip to content
Permalink
Browse files

Fixed two misspellings in O(n!) example

  • Loading branch information...
APKaramyshev committed Apr 21, 2018
1 parent 12471a2 commit 730059ec7ba7dd16115f09d5d58a01b068df9beb
Showing with 2 additions and 2 deletions.
  1. +2 −2 Big-O Notation.markdown
@@ -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)
}
}
```

0 comments on commit 730059e

Please sign in to comment.
You can’t perform that action at this time.