chore(i18n,curriculum): update translations (#43104)

This commit is contained in:
camperbot
2021-08-05 23:31:15 +09:00
committed by GitHub
parent e389517800
commit ea9c39434b
52 changed files with 241 additions and 223 deletions

View File

@ -1,6 +1,6 @@
---
id: 59713bd26bdeb8a594fb9413
title: Count the coins
title: Contar moedas
challengeType: 5
forumTopicId: 302238
dashedName: count-the-coins
@ -8,51 +8,51 @@ dashedName: count-the-coins
# --description--
There are four types of common coins in [US](https://en.wikipedia.org/wiki/United_States) currency:
Existem quatro tipos de moedas comuns no dinheiro dos [EUA](https://en.wikipedia.org/wiki/United_States):
<ul>
<li>quarters (25 cents)</li>
<li>dimes (10 cents)</li>
<li>nickels (5 cents), and</li>
<li>pennies (1 cent)</li>
<li>quarters (25 centavos)</li>
<li>dimes (10 centavos)</li>
<li>nickels (5 centavos) e</li>
<li>pennies (1 centavo)</li>
</ul>
<p>There are six ways to make change for 15 cents:</p>
<p>Há seis maneiras de fazer troco com 15 centavos:</p>
<ul>
<li>A dime and a nickel</li>
<li>A dime and 5 pennies</li>
<li>Um dime e um nickel</li>
<li>Um dime e 5 pennies</li>
<li>3 nickels</li>
<li>2 nickels and 5 pennies</li>
<li>A nickel and 10 pennies</li>
<li>2 nickels e 5 pennies</li>
<li>Um nickel e 10 pennies</li>
<li>15 pennies</li>
</ul>
# --instructions--
Implement a function to determine how many ways there are to make change for a given input, `cents`, that represents an amount of US pennies using these common coins.
Implemente uma função para determinar quantas maneiras há para fazer troco para uma determinada entrada, `cents`, que representa uma quantidade de centavos americanos usando essas moedas comuns.
# --hints--
`countCoins` should be a function.
`countCoins` deve ser uma função.
```js
assert(typeof countCoins === 'function');
```
`countCoins(15)` should return `6`.
`countCoins(15)` deve retornar `6`.
```js
assert.equal(countCoins(15), 6);
```
`countCoins(85)` shouls return `163`.
`countCoins(85)` deve retornar `163`.
```js
assert.equal(countCoins(85), 163);
```
`countCoins(100)` should return `242`.
`countCoins(100)` deve retornar `242`.
```js
assert.equal(countCoins(100), 242);