freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-117-red-green-and-b...

1.1 KiB

id challengeType title forumTopicId
5900f3e21000cf542c50fef4 5 Problem 117: Red, green, and blue tiles 301743

Description

Using a combination of black square tiles and oblong tiles chosen from: red tiles measuring two units, green tiles measuring three units, and blue tiles measuring four units, it is possible to tile a row measuring five units in length in exactly fifteen different ways.

How many ways can a row measuring fifty units in length be tiled? NOTE: This is related to Problem 116.

Instructions

Tests

tests:
  - text: <code>euler117()</code> should return 100808458960497.
    testString: assert.strictEqual(euler117(), 100808458960497);

Challenge Seed

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

euler117();

Solution

// solution required