ash0x0's Obsidian Quartz

Home

❯

cs

❯

DSA

❯

Concepts

❯

Logical Operations

❯

Bit Manipulation

Bit Manipulation

Jul 21, 20251 min read

Operations

  • Bitwise AND
  • Bitwise OR
  • Bitwise XOR
  • Bitwise Shift Right
  • Bitwise Shift Left

Key tricks

  • Checking if a number is power of 2
  • Swapping without temp variable
  • Counting set bits

Common Problems

  • Find the single non-repeating number

Graph View

  • Operations
  • Key tricks
  • Common Problems

Backlinks

  • 190. Reverse Bits
  • 1342. Number of Steps to Reduce a Number to Zero

Created with Quartz v4.5.1 © 2025

  • GitHub
  • Discord Community