exercism / c

Exercism exercises in C.
https://exercism.org/tracks/c
MIT License
273 stars 176 forks source link

Improve the zebra-puzzle. #960

Closed siebenschlaefer closed 4 months ago

siebenschlaefer commented 4 months ago

Following the discussion at https://github.com/exercism/c/pull/959#discussion_r1501899860, this PR changes the API of the solution. Instead of two formally independent functions for the two sub-tasks the tests now require a single function that returns a struct with the two answers. That should reduce the boilerplate that students will have to write.

It also improves some small details of the example solution.