软软电面

I was asked:

  • Explain Recursion
  • Requirements for Good Code
  • Good Code vs Best Code
  • Challenging project that I worked on, technical details
  • Why Microsoft

Puzzle:
You have 9 balls. One of them is defective and weighs less than others. You have a scale to measure balls against each other. Using the scale only twice how do you find the defective one?