Files
freeCodeCamp/curriculum/challenges/spanish/08-coding-interview-prep/rosetta-code/count-the-coins.spanish.md
2018-10-11 02:15:05 +05:30

56 lines
1.7 KiB
Markdown

---
title: Count the coins
id: 59713bd26bdeb8a594fb9413
challengeType: 5
videoUrl: ''
localeTitle: Contar las monedas
---
## Description
<section id="description"><p> Hay cuatro tipos de monedas comunes en moneda <a href="https://en.wikipedia.org/wiki/United_States" title="enlace: https://en.wikipedia.org/wiki/United_States">estadounidense</a> : </p> cuartos (25 centavos) monedas de diez centavos (10 centavos) centavos (5 centavos) y centavos (1 centavo) <p> Hay seis formas de hacer cambio por 15 centavos: </p> Una moneda de diez centavos y un centavo. Una moneda de diez centavos y 5 centavos. 3 centavos. 5 centavos. 5 centavos. 5 centavos. <p> Implemente una función para determinar cuántas maneras hay de hacer un cambio por un dólar usando estas monedas comunes. (1 dólar = 100 centavos). </p> Referencia: <a href="http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-11.html#%_sec_Temp_52" title="enlace: http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-11.html#%_sec_Temp_52">un algoritmo de MIT Press</a> . </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>countCoins</code> es una función.
testString: 'assert(typeof countCoins === "function", "<code>countCoins</code> is a function.");'
- text: <code>countCoints()</code> debe devolver 242.
testString: 'assert.equal(countCoins(), 242, "<code>countCoints()</code> should return 242.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function countCoins () {
// Good luck!
return true;
}
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>