1.7 KiB
1.7 KiB
id, localeTitle, challengeType, title
id | localeTitle | challengeType | title |
---|---|---|---|
5 | 5900f3bf1000cf542c50fed2 | 5 | Problem 83: Path sum: four ways |
Description
$ \ begin {pmatrix} \ color {red} {131} & 673 & \ color {red} {234} & \ color {red} {103} & \ color {rojo} {18} \ \ color {rojo} {201} & \ 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 & \ color {rojo} {37} & \ color {rojo} {331} \ fin {pmatrix} $
Encuentre la suma de ruta mínima, en matrix.txt (clic derecho y "Guardar enlace / Destinar como ... "), 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.
Instructions
Tests
tests:
- text: <code>euler83()</code> debe devolver 425185.
testString: 'assert.strictEqual(euler83(), 425185, "<code>euler83()</code> should return 425185.");'
Challenge Seed
function euler83() {
// Good luck!
return true;
}
euler83();
Solution
// solution required