freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-380-amazing-mazes.md

1.3 KiB
Raw Blame History

id challengeType videoUrl localeTitle
5900f4e81000cf542c50fffb 5 问题380惊人的迷宫

Description

m×n迷宫是m×n矩形网格其中墙壁放置在网格单元之间使得从左上角正方形到任何其他正方形恰好有一条路径。以下是9×12迷宫和15×20迷宫的示例

设Cmn为不同m×n个迷宫的数量。可以通过来自另一个迷宫的旋转和反射形成的迷宫被认为是不同的。

可以证实C1,1= 1C2,2= 4C3,4= 2415C9,12= 2.5720e46科学计数法四舍五入为5显着位。找到C100,500并用科学计数法将你的答案写成五位有效数字。

在给出答案时使用小写e来分隔尾数和指数。例如如果答案是1234567891011则答案格式为1.2346e12。

Instructions

Tests

tests:
  - text: <code>euler380()</code>应该返回Infinity。
    testString: assert.strictEqual(euler380(), Infinity);

Challenge Seed

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

euler380();

Solution

// solution required

/section>