Vahagn_Grigoryan's blog

By Vahagn_Grigoryan, history, 3 years ago, In English

Hi Codeforces Community!

Can anyone tell please what this expression (n & (-n)) returns?

  • Vote: I like it
  • +2
  • Vote: I do not like it

»
3 years ago, # |
  Vote: I like it +18 Vote: I do not like it

It will return LSB of n

example