Skip to content

Commit

Permalink
fix: dont compute so many fibonacci numbers (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight authored Aug 13, 2024
1 parent 75800b2 commit b4c2a47
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 b4c2a47

Please sign in to comment.