fave77 / Mathball

A JavaScript library for Competitive Programming
https://fave77.github.io/Mathball-Docs/
MIT License
99 stars 49 forks source link

Count Set Bits #129

Closed fave77 closed 5 years ago

fave77 commented 5 years ago

Do the checklist before filing the issue:

NOTE: Provide a clear and concise description of the feature that needs to be added! Or if its a bug, then provide the necessary steps to reproduce it along with screenshots.

Function:

M.popcount(6);    /* 2 */
M.popcount(13);   /* 3 */
M.popcount(-9);   /* 31 */

Arguments: Integer Return Type: Non-negative integer Category: Mathematical Utility Resource: https://www.geeksforgeeks.org/count-set-bits-in-an-integer/

pydevsg commented 5 years ago

I would like to work on this issue.

fave77 commented 5 years ago

@pydevsg you're assigned

punkstar25 commented 5 years ago

can i work on this issue..

fave77 commented 5 years ago

@punkstar25 this one is already assigned to @pydevsg