Maximum power for the given value

Find Perfect Square/Maximum power for the given value. Value can vary from negative Int. to positive Integer and Rational/Decimal Numbers.

(For example:- 625 the value is 4, {5 to the power 4, so 4 would be answer})

GCD/HCD Logic if there would be 2 different powers (For Example:- 75, it would be 3 to the power 1 and 5 to the power two, so in this case find  GCD to get value so 1 would be the answer.)

For 0.5 it would be 5/10= ½ , so Power would be 2...

Read More »

By: StackOverFlow - Friday, 9 November

Related Posts