freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-181-investigating-i...

1.1 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f4231000cf542c50ff34 5 Problem 181: Investigating in how many ways objects of two different colours can be grouped 问题181调查两种不同颜色的对象可以分组的方式

Description

有三个黑色物体B和一个白色物体W它们可以用7种方式分组BBBWBBBWBBBWBBBWBBBW BBBWBBBW在六十个黑色物体B和四十个白色物体W的分组方式中有多少种

Instructions

Tests

tests:
  - text: <code>euler181()</code>应该返回83735848679360670。
    testString: 'assert.strictEqual(euler181(), 83735848679360670, "<code>euler181()</code> should return 83735848679360670.");'

Challenge Seed

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

euler181();

Solution

// solution required