Skip to content

Adding math algorithm to compute power and its tests #172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Sep 4, 2018

Conversation

HatimLokhandwala
Copy link
Contributor

@HatimLokhandwala HatimLokhandwala commented Aug 19, 2018

An algorithm to compute the power using two numbers A and B.
Power (A, B) = A^B

@codecov-io
Copy link

codecov-io commented Aug 19, 2018

Codecov Report

Merging #172 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #172   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files         135    136    +1     
  Lines        2498   2510   +12     
  Branches      414    417    +3     
=====================================
+ Hits         2498   2510   +12
Impacted Files Coverage Δ
src/algorithms/math/compute-power/power.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 518dc57...6be165e. Read the comment docs.

@trekhleb
Copy link
Owner

@HatimLokhandwala thank you for PR!
Could you please put a little bit more details in README? What I mean is:

  • Does this algorithm has any special name?
  • What the main idea or main formula or illustration of the algorithm?

@HatimLokhandwala
Copy link
Contributor Author

@trekhleb Have updated the readme for the missing details.
Please have a look.

@trekhleb trekhleb changed the base branch from master to fast-power September 4, 2018 14:20
@trekhleb
Copy link
Owner

trekhleb commented Sep 4, 2018

Thank you @HatimLokhandwala

@trekhleb trekhleb merged commit 8676c1b into trekhleb:fast-power Sep 4, 2018
harshes53 pushed a commit to harshes53/javascript-algorithms that referenced this pull request Dec 6, 2018
* Adding math algorithm to compute power and its tests

* adding more test cases, updating compute power js

* Updating ReadMe for power computation algorithm
shoredata pushed a commit to shoredata/javascript-algorithms that referenced this pull request Mar 28, 2019
* Adding math algorithm to compute power and its tests

* adding more test cases, updating compute power js

* Updating ReadMe for power computation algorithm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants