mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-11-10 11:09:43 +08:00
fixed the boundary condition and linted
This commit is contained in:
parent
506aefbc78
commit
5ed34c7d05
@ -14,7 +14,7 @@ export default function fastPowering(base, power) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (power < 0 ) {
|
||||
if (power < 0) {
|
||||
const powerNext = power * -1;
|
||||
const baseNext = 1 / base;
|
||||
// console.log("sssss")
|
||||
|
Loading…
Reference in New Issue
Block a user