Closed beforeIkillYou closed 9 months ago
Hey @shishiro26 @akhilender-bongirwar @Illuminati9 @Kota-Karthik the approach i went for solving this issue is pretty straightforward. Instead of finding the power iteratively i went for a recursive approach which uses basic recursion for raising the base to a specified power.
This above written function by me is the direct implementation of recursive exponentiation algorithm and this image gives a pretty clear view of how it works-
Hey @akhilender-bongirwar @Illuminati9 @PavanaSakethaRam , removed all the commented code from issue #25 and provided a solution using a recursive approach.
Hello @akhilender-bongirwar @Illuminati9 @shishiro26 @Kota-Karthik , i completed all the required changes . Made the required folders and commented all the unnecessary code and and text.
Hello @akhilender-bongirwar @Illuminati9 @shishiro26 @Kota-Karthik , i completed all the required changes . Removed the 'power.cpp' file.
Hey @shishiro26 @Illuminati9 @Kota-Karthik @akhilender-bongirwar , solved issue #25 . Provides an alternate approach to the power function by converting its implementation to recursive #25