Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 316 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 316 Bytes

LeetCode

LeetCode problems that are solved.

  • take the bit of the ith(from right) digit:

    bit = (mask >> i) & 1;

  • set the ith digit to 1: mask = mask | (1 << i);

  • set the ith digit to 0: mask = mask & (~(1 << i));

A Sample Structure