Skip to content

Add Java Solution for Problem 191 #202

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
Jul 23, 2019
Merged

Add Java Solution for Problem 191 #202

merged 2 commits into from
Jul 23, 2019

Conversation

mamadaliev
Copy link
Contributor

Hello, Doocs!
Please merge my changes if you think these changes are correct.

  1. Add Solution.java file to the 0191. Number of 1 Bits directory.
// Solution.java
public class Solution {
    public int hammingWeight(int n) {
        return Integer.bitCount(n);
    }
}
  1. Update README.md.
...
├── 0191.Number of 1 Bits
│   ├── Solution.java
│   ├── Solution.js
│   └── Solution.py
...

Please do not mark this as spam.

Copy link
Member

@yanglbme yanglbme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @egnaf , thanks for your contribution.

@yanglbme yanglbme merged commit a301155 into doocs:master Jul 23, 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.

2 participants