samedi 24 novembre 2018

What does """ if((counter & (1 << j)) > 0): """ do?

I am trying to print all subsets of an array. I came across this if statement in on of the solutions. What does this if condition do?

if((counter & (1 << j)) > 0):

Aucun commentaire:

Enregistrer un commentaire