Object-Oriented Programming · Square · Medium
This coding problem begins small and expands in stages. You start with a short list of cats and are asked to apply a basic filter to it. From there, the problem grows: you need to model queries over each cat's weight and height. Individual conditions can be joined using AND and OR, and these combinations may be nested inside one another to arbitrary depth. How you represent the queries and the data is up to you, so choosing an appropriate data structure is part of the task.…