Fix some translations (#21220)

This commit is contained in:
Marina Touceda
2019-08-08 01:28:45 -03:00
committed by Randell Dawson
parent e74b68a1a5
commit 68bb39b9f2

View File

@ -1,8 +1,8 @@
--- ---
title: Exponentiation 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. 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 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) if (y & 1)
res = (res*x) % p; res = (res*x) % p;
// y must be even now // y debe ser par ahora
y = y>>1; y = y>>1;
x = (x*x) % p; x = (x*x) % p;
} }
@ -58,4 +58,4 @@ int power(int x, unsigned int y, int p) {
} }
``` ```
Complejidad del tiempo: O (Log y). Complejidad del tiempo: O (Log y).