Files
freeCodeCamp/curriculum/challenges/italian/10-coding-interview-prep/project-euler/problem-181-investigating-in-how-many-ways-objects-of-two-different-colours-can-be-grouped.md
2022-02-28 08:59:21 +01:00

45 lines
882 B
Markdown

---
id: 5900f4231000cf542c50ff34
title: >-
Problema 181: Indagare in quanti modi possono essere raggruppati oggetti di due colori diversi
challengeType: 5
forumTopicId: 301817
dashedName: >-
problem-181-investigating-in-how-many-ways-objects-of-two-different-colours-can-be-grouped
---
# --description--
Dati tre oggetti neri $B$ e un oggetto bianco $W$, essi possono essere raggruppati in 7 modi:
$$(BBBW)\\;(B,BBW)\\;(B,B,BW)\\;(B,B,B,W)\\;(B,BB,W)\\;(BBB,W)\\;(BB,BW)$$
In quanti modi possono essere raggruppati sessanta oggetti neri $B$ e quaranta oggetti bianchi $W$?
# --hints--
`colorsGrouping()` dovrebbe restituire `83735848679360670`.
```js
assert.strictEqual(colorsGrouping(), 83735848679360670);
```
# --seed--
## --seed-contents--
```js
function colorsGrouping() {
return true;
}
colorsGrouping();
```
# --solutions--
```js
// solution required
```