javascript-algorithms icon indicating copy to clipboard operation
javascript-algorithms copied to clipboard

fix(fastPowering): check when number is raided to power of one

Open jaw0r3k opened this issue 1 year ago • 1 comments

The function didnt check when power is one so unnecessarily was going though multiplying base by ones

jaw0r3k avatar Jul 30 '23 20:07 jaw0r3k

This type of benchmark is usually not a good measurement for practical usage. More importantly, this type of "optimization" is not the goal of this repository -- it's about understanding data structures and algorithms, not squeezing out every nanosecond from the engine.

lazarljubenovic avatar Aug 21 '23 18:08 lazarljubenovic