Files
freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-237-tours-on-a-4-x-n-playing-board.english.md
Valeriy 79d9012432 fix(curriculum): quotes in tests (#18828)
* fix(curriculum): tests quotes

* fix(curriculum): fill seed-teardown

* fix(curriculum): fix tests and remove unneeded seed-teardown
2018-10-20 23:32:47 +05:30

1.0 KiB
Raw Blame History

id, challengeType, title
id challengeType title
5900f4591000cf542c50ff6c 5 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:

T(10) is 2329. What is T(1012) modulo 108?

Instructions

Tests

tests:
  - text: <code>euler237()</code> should return 15836928.
    testString: assert.strictEqual(euler237(), 15836928, '<code>euler237()</code> should return 15836928.');

Challenge Seed

function euler237() {
  // Good luck!
  return true;
}

euler237();

Solution

// solution required