Practice Overview
Work through the two problems below, in order.
You can download the accompanying code for these practice problems: starter and solution.
- Problem: Make a Card Orderable
- Solution: Value Equality
- Solution: A Natural Order
- Solution: A Second Order
- Problem: A Generic max
- Solution: Max by Natural Order
- Solution: Max by a Comparator