Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

AtsizEagle's blog

By AtsizEagle, history, 2 years ago, In English

I am feeling weak in bitmask problems. I am facing the problem "How to think actually!!".. Could anyone help me ??

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Can you provide the link to the problem ?

»
2 years ago, hide # |
← Rev. 2  
Vote: I like it 0 Vote: I do not like it

Understand the concept of bitwise AND, OR and XOR. Then try to visualize them. Practice in pen-paper like 23 OR 39 = ?, 67 XOR 34 = ?, 24 AND 18 = ? ..... Then try solving some bitmask problems of your level.

Additional : Watch some basic bitmask problem tutorial in YT it will make things easier for you.

Note : There is a typo in you blog. I think it will be "bitmask problems" instead of "bitmask problem" fix it otherwise it will give people wrong idea.