http://codingdojo.org/kata/Potter/
-
SimpleKataPotter
- loop books
- calculate size of different books
- calculate price according to the discount rule
- adjust edge case: replace every pair of 5 distinct books and 3 distinct books with a 2 groups of 4 distinct books
-
OptimizedKataPotter
- loop books
- calculate count of each book and sort by count decreasingly
- calculate price according to the discount rule
- adjust edge case: replace every pair of 5 distinct books and 3 distinct books with a 2 groups of 4 distinct books
- much faster than above method because reduce loop times.
http://codingdojo.org/kata/FizzBuzz/
- Good to introduce the concepts of TDD and BabySteps to a new CodingDojo