This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🌞 Morning 79 commits █▉░░░░░░░░░░░░░░░░░░░ 9.3% | |
🌆 Daytime 174 commits ████▎░░░░░░░░░░░░░░░░ 20.4% | |
🌃 Evening 332 commits ████████▏░░░░░░░░░░░░ 38.9% | |
🌙 Night 268 commits ██████▌░░░░░░░░░░░░░░ 31.4% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func fibonacci(_ n: Int) -> Int { | |
var preValue = 0 | |
var nextValue = 1 | |
for _ in 0 ..< n { | |
let resultValue = preValue + nextValue | |
preValue = nextValue | |
nextValue = resultValue | |
} |