Top 15 Programming Puzzles

 
 
Below is the list of commonly asked programming puzzles in a technical interviews –
 

  1. Add two numbers without using addition operator | 4 methods
     
  2. Implement power function without using multiplication and division operators
     
  3. Print all numbers between 1 to N without using semicolon
     
  4. Swap two numbers without using third variable | 5 methods
     
  5. Determine the if condition to print specific output
     
  6. Find maximum, minimum of three numbers without using conditional statement and ternary operator | 4 methods
     
  7. Print “Hello World” with empty main() function | 3 methods
     
  8. Tower of Hanoi Problem
     
  9. Print all numbers between 1 to N without using any loop | 4 methods
     
  10. Print a semicolon without using semicolon anywhere in the program
     
  11. Multiply two numbers without using multiplication operator or loops
     
  12. Find square of a number without using multiplication and division operator | 3 methods
     
  13. Generate power set of a given set
     
  14. Clock angle problem | Find angle between hour and minute hand
     
  15. Find if a number is even or odd without using any conditional statement
     



 
 

Thank you for being with us. 🙂

 




Leave a Reply

Notify of
avatar
wpDiscuz