[FIR-TEST] Move analysis tests to separate module
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
fun fibIterative(n: Int): Int {
|
||||
if (n < 2) return 1
|
||||
var current = 1
|
||||
var prev = 1
|
||||
for (i in 2..n) {
|
||||
val temp = current
|
||||
current += prev
|
||||
prev = temp
|
||||
}
|
||||
return current
|
||||
}
|
||||
Reference in New Issue
Block a user