56 lines
976 B
Markdown
56 lines
976 B
Markdown
|
---
|
||
|
id: 5900f4861000cf542c50ff99
|
||
|
challengeType: 5
|
||
|
title: 'Problem 282: The Ackermann function'
|
||
|
videoUrl: ''
|
||
|
localeTitle: 'Problema 282: A função Ackermann'
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id="description"> Para inteiros não negativos m, n, a função Ackermann A (m, n) é definida da seguinte forma: <p> Por exemplo, A (1, 0) = 2, A (2, 2) = 7 e A (3, 4) = 125. </p><p> Encontre A (n, n) e dê sua resposta mod 148. </p></section>
|
||
|
|
||
|
## Instructions
|
||
|
<section id="instructions">
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- text: <code>euler282()</code> deve retornar 1098988351.
|
||
|
testString: 'assert.strictEqual(euler282(), 1098988351, "<code>euler282()</code> should return 1098988351.");'
|
||
|
|
||
|
```
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Challenge Seed
|
||
|
<section id='challengeSeed'>
|
||
|
|
||
|
<div id='js-seed'>
|
||
|
|
||
|
```js
|
||
|
function euler282() {
|
||
|
// Good luck!
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
euler282();
|
||
|
|
||
|
```
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Solution
|
||
|
<section id='solution'>
|
||
|
|
||
|
```js
|
||
|
// solution required
|
||
|
```
|
||
|
</section>
|