This special Guru of the Week series focuses on contracts. We covered some basics of preconditions in GotW #100. This time, let’s see how we can use preconditions in some practical examples… 1. Consider these functions, expanded from an article by Andrzej Krzemieński: [1] … How many ways could a caller of each function get … Continue reading GotW #101 Solution: Preconditions, Part 2 (Difficulty: 7/10)→