freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-33-digit-cancelling...

1.3 KiB
Raw Blame History

id challengeType videoUrl title
5900f38d1000cf542c50fea0 5 问题33数字取消分数

Description

分数九十八分之四十九是好奇馏分,如在试图简化它可能会错误地认为九十八分之四十九 = 4/8这是正确的则通过取消787-9获得一个没有经验的数学家。我们应考虑馏分喜欢 五十○分之三十○= 3/5是微不足道的例子。这种类型的分数恰好有四个非平凡的例子,小于一个值,并且在分子和分母中包含两个数字。如果这四个分数的乘积以其最低公共项给出,请找到分母的值。

Instructions

Tests

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

Challenge Seed

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

digitCancellingFractions();

Solution

// solution required

/section>