450

DSA Notes

450 Problems

  • []Array
    36
  • [[]]Matrix
    10
  • "s"String
    43
  • ?Searching & Sorting
    36
  • ->LinkedList
    36
  • /\Binary Trees
    35
  • <>BST
    22
  • $Greedy
    35
  • <-BackTracking
    19
  • ||Stacks & Queues
    38
  • /\Heap
    18
  • o-oGraph
    44
  • TTrie
    6
  • DPDynamic Programming
    60
  • 01Bit Manipulation
    10
Home/Category/Bit Manipulation
10 Problems

Bit Manipulation

Master bit manipulation problems with detailed brute force and optimal solutions.

01
Count set bits in an integer
Click to view brute force and optimal solutions
02
Find the two non-repeating elements in an array of repeating elements
Click to view brute force and optimal solutions
03
Count number of bits to be flipped to convert A to B
Click to view brute force and optimal solutions
04
Count total set bits in all numbers from 1 to n
Click to view brute force and optimal solutions
05
Program to find whether a no is power of two
Click to view brute force and optimal solutions
06
Find position of the only set bit
Click to view brute force and optimal solutions
07
Copy set bits in a range
Click to view brute force and optimal solutions
08
Divide two integers without using multiplication, division and mod operator
Click to view brute force and optimal solutions
09
Calculate square of a number without using multiplication, division and pow()
Click to view brute force and optimal solutions
10
Power Set
Click to view brute force and optimal solutions