Monday, January 22, 2018

Bit Algorithms :Questions



http://javabypatel.blogspot.in/search/label/Bit%20Manipulation



Bit Algorithms:
  1. Find the element that appears once
  2. Detect opposite signs
  3. Set bits in all numbers from 1 to n
  4. Swap bits
  5. Add two numbers
  6. Smallest of three
  7. A Boolean Array Puzzle
  8. Set bits in an (big) array
  9. Next higher number with same number of set bits
  10. Optimization Technique (Modulus)
  11. Add 1 to a number
  12. Multiply with 3.5
  13. Turn off the rightmost set bit
  14. Check for Power of 4
  15. Absolute value (abs) without branching
  16. Modulus division by a power-of-2-number
  17. Minimum or Maximum of two integers
  18. Rotate bits
  19. Find the two non-repeating elements in an array
  1. Number Occurring Odd Number of Times
  2. Check for Integer Overflow
  3. Little and Big Endian
  4. Reverse Bits of a Number
  5. Count set bits in an integer
  6. Number of bits to be flipped to convert A to B
  7. Next Power of 2
  8. Check if a Number is Multiple of 3
  9. Find parity
  10. Multiply with 7
  11. Find whether a no is power of two
  12. Position of rightmost set bit
  13. Binary representation of a given number
  14. Swap all odd and even bits
  15. Find position of the only set bit
  16. Karatsuba algorithm for fast multiplication
  17. How to swap two numbers without using a temporary variable?
  18. Check if a number is multiple of 9 using bitwise operators
  19. Swap two nibbles in a byte
  20. How to turn off a particular bit in a number?
  21. Check if binary representation of a number is palindrome

No comments:

Post a Comment