Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[typo] variable name should be r instead of res
  • Loading branch information
alfaloo committed Jun 10, 2025
commit 3ffc013354245f49e7d2f033b72fa51b0ce1d971
2 changes: 1 addition & 1 deletion content/english/hpc/number-theory/exponentiation.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ u64 binpow(u64 a, u64 n) {

while (n) {
if (n & 1)
r = res * a % M;
r = r * a % M;
a = a * a % M;
n >>= 1;
}
Expand Down