Skip to content

Commit

Permalink
dont compute so many fibonacci numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight committed May 5, 2024
1 parent 75800b2 commit 598f80c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EmpowerPlant/EmpowerPlantViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class EmpowerPlantViewController: UIViewController {
n2 = nR + n2
}

if (n1 < 4000) {
if (n1 < 500) {
return fibonacciSeries(num: n1)
}
return n1
Expand Down

0 comments on commit 598f80c

Please sign in to comment.