We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d43b038 + 1ddf6b5 commit fadbd81Copy full SHA for fadbd81
benchmark/single-source/Ackermann.swift
@@ -15,7 +15,7 @@
15
import TestsUtils
16
17
func ackermann(M : Int, _ N : Int) -> Int {
18
- if (M == 0) { return N + 1 }
+ if (M == 0) { return N + 1 }
19
if (N == 0) { return ackermann(M - 1, 1) }
20
return ackermann(M - 1, ackermann(M, N - 1))
21
}
@@ -25,7 +25,7 @@ func Ackermann(M : Int, _ N : Int) -> Int {
25
// This if prevents optimizer from computing return value of Ackermann(3,9)
26
// at compile time.
27
if False() { return 0 }
28
29
30
31
0 commit comments