Commit Graph

3 Commits

Author SHA1 Message Date
Krishna Vedala
139964d325
improved documentation 2020-05-26 09:05:44 -04:00
Krishna Vedala
0ad756f860
rand_r is non-portable and obsolete 2020-05-26 09:05:29 -04:00
Bahadir Altun
79d50738f2 Add fast power (#691)
* Add fast power

Computes a^b in O(logN) time.

* Change long long to int64_t

* Update fast_power.cpp

* Update fast_power.cpp

* Add tests

* Update sample tests

* Update rand function

* Remove extra-spaces
2019-12-26 09:30:30 +01:00