From 68bb39b9f2414189cffb124540e11c94d2d799ba Mon Sep 17 00:00:00 2001 From: Marina Touceda <42867184+toucedam@users.noreply.github.com> Date: Thu, 8 Aug 2019 01:28:45 -0300 Subject: [PATCH] Fix some translations (#21220) --- guide/spanish/algorithms/exponentiation/index.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/guide/spanish/algorithms/exponentiation/index.md b/guide/spanish/algorithms/exponentiation/index.md index 92649af1d0..0cb3f42cef 100644 --- a/guide/spanish/algorithms/exponentiation/index.md +++ b/guide/spanish/algorithms/exponentiation/index.md @@ -1,8 +1,8 @@ --- title: Exponentiation -localeTitle: Exposiciónción +localeTitle: Potenciación --- -## Exposiciónción +## Potenciación Dados dos enteros a y n, escribe una función para calcular a ^ n. @@ -38,7 +38,7 @@ int power(int x, unsigned int y) { } ``` -## Exponentiación modular +## modular Dados tres números x, yyp, calculamos (x ^ y)% p @@ -50,7 +50,7 @@ int power(int x, unsigned int y, int p) { if (y & 1) res = (res*x) % p; - // y must be even now + // y debe ser par ahora y = y>>1; x = (x*x) % p; } @@ -58,4 +58,4 @@ int power(int x, unsigned int y, int p) { } ``` -Complejidad del tiempo: O (Log y). \ No newline at end of file +Complejidad del tiempo: O (Log y).