Commit Graph

3 Commits

Author SHA1 Message Date
Krishna Vedala
05ec7bed72
improved documentation
(cherry picked from commit 139964d325)
2020-05-26 10:16:37 -04:00
Krishna Vedala
36b4d59d59
rand_r is non-portable and obsolete
(cherry picked from commit 0ad756f860)
2020-05-26 10:16:15 -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