Skip to content

Add ifPowerOf2 #155

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 2 commits into from
Aug 27, 2018
Merged

Add ifPowerOf2 #155

merged 2 commits into from
Aug 27, 2018

Conversation

tapaswenipathak
Copy link
Contributor

This adds implementation to check if a number is power of 2 using bitwise operators.

@tapaswenipathak tapaswenipathak mentioned this pull request Aug 11, 2018
11 tasks
@codecov-io
Copy link

Codecov Report

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

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #155   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files         123    124    +1     
  Lines        2342   2343    +1     
  Branches      396    397    +1     
=====================================
+ Hits         2342   2343    +1
Impacted Files Coverage Δ
src/algorithms/math/bits/ifPowerOf2.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 3c37ba4...2c06456. Read the comment docs.

@trekhleb trekhleb changed the base branch from master to is-power-of-two August 27, 2018 13:59
@trekhleb
Copy link
Owner

Thank you for PR @tapasweni-pathak

@trekhleb trekhleb merged commit 70b0e0a into trekhleb:is-power-of-two Aug 27, 2018
harshes53 pushed a commit to harshes53/javascript-algorithms that referenced this pull request Dec 6, 2018
shoredata pushed a commit to shoredata/javascript-algorithms that referenced this pull request Mar 28, 2019
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.

3 participants