From 730059ec7ba7dd16115f09d5d58a01b068df9beb Mon Sep 17 00:00:00 2001 From: APKaramyshev <38246803+APKaramyshev@users.noreply.github.com> Date: Sat, 21 Apr 2018 21:54:58 +0300 Subject: [PATCH] Fixed two misspellings in O(n!) example --- Big-O Notation.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Big-O Notation.markdown b/Big-O Notation.markdown index 19a1ddbde..257f80462 100644 --- a/Big-O Notation.markdown +++ b/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) } } ```