Wednesday, April 25, 2012

Weighing with Stones Kata

Today, I have completed the Weighing with Stones Kata. Below are my notes:

  • It took me three two and a half hours to complete.
  • I first worked out the problem in notepad to find a combination of weights that would satisfy the criteria outlined in the kata.
  • I took a brute-force approach to development. However, I saved some execution time by forcing one of the weights to have a value of 1. I believe that my execution time was O(n^3), where n is the weight of the initial stone.

P.S. I would have to say that my level of self-awareness of copying code was III during this kata. Please see what the levels mean in my learning plan.

No comments:

Post a Comment