Open U-c0de opened 3 years ago
This algorithm basically is as follow:-
When 1 is subtracted from any number then all the bits after rightmost bit having value 1(set bit) and including the right-most set bit itself gets flipped.
@i-tick @rcoder23 assign me this
This algorithm basically is as follow:-
When 1 is subtracted from any number then all the bits after rightmost bit having value 1(set bit) and including the right-most set bit itself gets flipped.