freeCodeCamp/curriculum/challenges/spanish/08-coding-interview-prep/project-euler/problem-83-path-sum-four-wa...

71 lines
1.7 KiB
Markdown
Raw Normal View History

---
id: 5
localeTitle: 5900f3bf1000cf542c50fed2
challengeType: 5
title: 'Problem 83: Path sum: four ways'
---
## Description
<section id='description'>
NOTA: Este problema es una versión significativamente más desafiante del Problema 81.
En la matriz de 5 por 5 a continuación, se indica la suma mínima de la ruta desde la parte superior izquierda hasta la parte inferior derecha, al mover la izquierda, derecha, arriba y abajo. en negrita rojo y es igual a 2297.
$
\ begin {pmatrix}
\ color {red} {131} &amp; 673 &amp; \ color {red} {234} &amp; \ color {red} {103} &amp; \ color {rojo} {18} \\
\ color {rojo} {201} &amp; \ color {rojo} {96} y \ color {rojo} {342} y 965 y \ color {rojo} {150} \\
630 y 803 y 746 y \ color {rojo} {422} y \ color {rojo} {111} \\
537 y 699 y 497 y \ color {rojo} {121} y 956 \\
805 y 732 y 524 &amp; \ color {rojo} {37} &amp; \ color {rojo} {331}
\ fin {pmatrix}
$
Encuentre la suma de ruta mínima, en matrix.txt (clic derecho y
&quot;Guardar enlace / Destinar como ... &quot;), un archivo de texto de 31K que contiene una matriz de 80 por 80, desde la parte superior izquierda hasta la parte inferior derecha moviéndose hacia la izquierda, hacia la derecha, hacia arriba y hacia abajo.
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler83()</code> debe devolver 425185.
testString: 'assert.strictEqual(euler83(), 425185, "<code>euler83()</code> should return 425185.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler83() {
// Good luck!
return true;
}
euler83();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>