The js sword refers to the integer power of offer-12-value

The sword refers to offer12 - the integer power of the value

Topic description

  Given a float base of type double and an integer exponent of type int. Find the exponent power of base.

const Power = (base, exponent) => Math.pow(base, exponent);

Parse

  Do n't worry too much about the type of the question, you can get the answer by directly referring to the exponentiation mentioned in offer9's abnormal jumping steps.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324030198&siteId=291194637