mardi 31 mars 2015

how to get all the positions of the set bits of a binary string in java?

For example if the binary string is 10100010 then the program must return 1st,3rd and 7th i.e the positions of the 1's.


Aucun commentaire:

Enregistrer un commentaire