Skip to content

fatshaw/codingdojo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coding Dojo

KataPotter

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.

fizzbuzz

http://codingdojo.org/kata/FizzBuzz/

  • Good to introduce the concepts of TDD and BabySteps to a new CodingDojo