committed by
Paul Happ
parent
ea7ab5e2dc
commit
97920cca8e
@ -38,7 +38,7 @@ int power(int x, unsigned int y) {
|
|||||||
|
|
||||||
## Modular Exponentiation
|
## Modular Exponentiation
|
||||||
|
|
||||||
Given three numbers x, y and p, compute (x^y) % p
|
Given three numbers x, y, and p, compute (x^y) % p
|
||||||
|
|
||||||
```C
|
```C
|
||||||
int power(int x, unsigned int y, int p) {
|
int power(int x, unsigned int y, int p) {
|
||||||
|
Reference in New Issue
Block a user