1.6 KiB
1.6 KiB
id, localeTitle, challengeType, title
id | localeTitle | challengeType | title |
---|---|---|---|
5 | 5900f3bd1000cf542c50fed0 | 5 | Problem 81: Path sum: two ways |
Description
$ \ begin { pmatrix} \ color {rojo} {131} y 673 y 234 y 103 y 18 \ \ color {rojo} {201} y \ color {rojo} {96} y \ color {rojo} {342} y 965 & 150 \ 630 & 803 & \ color {rojo} {746} & \ color {rojo} {422} & 111 \ 537 & 699 & 497 & \ color {rojo} {121} & 956 \ 805 & 732 & 524 & \ color {red} {37} & \ color {red} {331} \ end {pmatrix} $
Encuentre la suma de ruta mínima, en matrix.txt (haga clic con el botón derecho y "Guardar Enlace / Destino 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 solo hacia la derecha y hacia abajo.
Instructions
Tests
tests:
- text: <code>euler81()</code> debe devolver 427337.
testString: 'assert.strictEqual(euler81(), 427337, "<code>euler81()</code> should return 427337.");'
Challenge Seed
function euler81() {
// Good luck!
return true;
}
euler81();
Solution
// solution required