Skip to content

List them, or count them

Two problems on the same input: count the valid arrangements, and list every valid arrangement.

What does each call for?