freeCodeCamp/curriculum/challenges/spanish/08-coding-interview-prep/project-euler/problem-71-ordered-fraction...

56 lines
1.9 KiB
Markdown
Raw Normal View History

2018-10-08 17:34:43 +00:00
---
2018-10-10 20:20:40 +00:00
id: 5900f3b31000cf542c50fec6
2018-10-08 17:34:43 +00:00
challengeType: 5
title: 'Problem 71: Ordered fractions'
2018-10-10 20:20:40 +00:00
videoUrl: ''
localeTitle: 'Problema 71: fracciones ordenadas'
2018-10-08 17:34:43 +00:00
---
## Description
2018-10-10 20:20:40 +00:00
<section id="description"> Considera la fracción, n / d, donde n y d son enteros positivos. Si n <d 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" and="" hcf(n,d)="1," it="" is="" called="" a="" reduced="" proper="" fraction.="" if="" we="" list="" the="" set="" of="" fractions="" for="" d="" ="" in="" ascending="" order="" size,="" get:="" 8,="" 7,="" 6,="" 5,="" 4,="" 3,="" 2,="" can="" be="" seen="" that="" fraction="" immediately="" to="" left="" 7.="" by="" listing="" 1,000,000="" find="" numerator="" &#x3C;="" section=""><h2> Instrucciones </h2><section id="instructions"></section><h2> Pruebas </h2><section id="tests"><pre> <code class="language-yml">tests: - text: &lt;code&gt;euler71()&lt;/code&gt; should return 428570. testString: &#39;assert.strictEqual(euler71(), 428570, &quot;&lt;code&gt;euler71()&lt;/code&gt; should return 428570.&quot;);&#39;</code> </pre></section><h2> Semilla de desafío </h2><section id="challengeSeed"><div id="js-seed"><pre> <code class="language-js">function euler71() { // Good luck! return true; } euler71();</code> </pre></div></section><h2> Solución </h2><section id="solution"><pre> <code class="language-js">// solution required</code> </pre></section></d></section>
2018-10-08 17:34:43 +00:00
## Instructions
2018-10-10 20:20:40 +00:00
<section id="instructions">
2018-10-08 17:34:43 +00:00
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler71()</code> debe devolver 428570.
testString: 'assert.strictEqual(euler71(), 428570, "<code>euler71()</code> should return 428570.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler71() {
// Good luck!
return true;
}
euler71();
2018-10-10 20:20:40 +00:00
2018-10-08 17:34:43 +00:00
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>