You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package cap3
|
|
|
|
func Work7(m, n int) int {
|
|
var ack func(m, n int) int
|
|
ack = func(m, n int) int {
|
|
if m == 0 {
|
|
return n + 1
|
|
}
|
|
|
|
if n == 0 {
|
|
return ack(m-1, 1)
|
|
}
|
|
|
|
return ack(m-1, ack(m, n-1))
|
|
}
|
|
|
|
return ack(m, n)
|
|
}
|
|
|