Frequently DS and Algo interview Puzzles

  1. Multiply two integers without using multiplication, division and bitwise operators, and no loops
  2. Write your own Power without using multiplication(*) and division(/) operators
  3. Measure one liter using two vessels and infinite water supply
  4. Generate integer from 1 to 7 with equal probability
  5. Detect opposite signs
  6. How to swap two numbers without using a temporary variable?
  7. Check if binary representation of a number is a palindrome
  8. A binary representation of a given number
  9. Find whether a no is the power of two
  10. Write a program to add one to a given number. The use of operators like ‘+’, ‘-‘, ‘*’, ‘/’, ‘++’, ‘–‘ …etc are not allowed.