Files
freeCodeCamp/curriculum/challenges/italian/10-coding-interview-prep/project-euler/problem-237-tours-on-a-4-x-n-playing-board.md
2022-02-28 20:22:39 +01:00

50 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4591000cf542c50ff6c
title: 'Problema 237: Percorsi su una tavola da gioco 4 x n'
challengeType: 5
forumTopicId: 301882
dashedName: problem-237-tours-on-a-4-x-n-playing-board
---
# --description--
Sia $T(n)$ il numero di percorsi su un tabellone da gioco 4 × $n$ tale che:
- Il percorso inizia nell'angolo in alto a sinistra.
- Il percorso consiste in mosse in alto, in giù, a sinistra o a destra di un quadrato.
- Il percorso visita ogni quadrato esattamente una volta.
- Il percorso termina nell'angolo in basso a sinistra.
Il diagramma mostra un percorso su una tavola 4 × 10:
<img class="img-responsive center-block" alt="un percorso su una tavola 4 x 10" src="https://cdn.freecodecamp.org/curriculum/project-euler/tours-on-a-4-x-n-playing-board.gif" style="background-color: white; padding: 10px;" />
$T(10)$ è 2329. Cos'è $T({10}^{12})$ modulo ${10}^8$?
# --hints--
`toursOnPlayingBoard()` dovrebbe restituire `15836928`.
```js
assert.strictEqual(toursOnPlayingBoard(), 15836928);
```
# --seed--
## --seed-contents--
```js
function toursOnPlayingBoard() {
return true;
}
toursOnPlayingBoard();
```
# --solutions--
```js
// solution required
```