Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-237-tours-on-a-4-x-n-playing-board.md
gikf a9418a1fe9 fix(curriculum): clean-up Project Euler 221-240 (#42839)
* fix: clean-up Project Euler 221-240

* fix: corrections from review

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-07-15 14:26:34 +02:00

50 lines
1.1 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: 'Problem 237: Tours on a 4 x n playing board'
challengeType: 5
forumTopicId: 301882
dashedName: problem-237-tours-on-a-4-x-n-playing-board
---
# --description--
Let $T(n)$ be the number of tours over a 4 × $n$ playing board such that:
- The tour starts in the top left corner.
- The tour consists of moves that are up, down, left, or right one square.
- The tour visits each square exactly once.
- The tour ends in the bottom left corner.
The diagram shows one tour over a 4 × 10 board:
<img class="img-responsive center-block" alt="one tour over 4 x 10 board" 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)$ is 2329. What is $T({10}^{12})$ modulo ${10}^8$?
# --hints--
`toursOnPlayingBoard()` should return `15836928`.
```js
assert.strictEqual(toursOnPlayingBoard(), 15836928);
```
# --seed--
## --seed-contents--
```js
function toursOnPlayingBoard() {
return true;
}
toursOnPlayingBoard();
```
# --solutions--
```js
// solution required
```