Skip to content

Commit c6a9ad6

Browse files
snymm2adamant-pwn
authored andcommitted
Typo: "Module Operator" -> "Modulo Operator"
1 parent b19ce68 commit c6a9ad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/algebra/binary-exp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Compute $x^n \bmod m$.
9696
This is a very common operation. For instance it is used in computing the [modular multiplicative inverse](module-inverse.md).
9797

9898
**Solution:**
99-
Since we know that the module operator doesn't interfere with multiplications ($a \cdot b \equiv (a \bmod m) \cdot (b \bmod m) \pmod m$), we can directly use the same code, and just replace every multiplication with a modular multiplication:
99+
Since we know that the modulo operator doesn't interfere with multiplications ($a \cdot b \equiv (a \bmod m) \cdot (b \bmod m) \pmod m$), we can directly use the same code, and just replace every multiplication with a modular multiplication:
100100

101101
```cpp
102102
long long binpow(long long a, long long b, long long m) {

0 commit comments

Comments
 (0)