You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tested both solutions here. It turns out that, for base ranged from 2 to 10000 and n ranged from 2 to 8, the Math.log solution gives 26 correct answers and 114 wrong answers while Math.pow solution gives 119 correct answers and 21 wrong answers as seen in the result.
The text was updated successfully, but these errors were encountered:
the solution above gives correct answers more often than the solution from the article below:
I just tested both solutions here. It turns out that, for
base
ranged from 2 to 10000 andn
ranged from 2 to 8, the Math.log solution gives 26 correct answers and 114 wrong answers while Math.pow solution gives 119 correct answers and 21 wrong answers as seen in the result.The text was updated successfully, but these errors were encountered: