gleam icon indicating copy to clipboard operation
gleam copied to clipboard

Add zebra-puzzle exercise

Open glennj opened this issue 1 year ago • 3 comments

I'm sure there's an "eleganter" way solve this, but ...

glennj avatar May 07 '24 23:05 glennj

Looking at the other languages this would normally be a function for each of the water drinker and the zebra owner. How come you have opted for a data structure holding both?

Once the puzzle is solved (once), both answers are known. Having to solve it twice is redundant.

I chose one test function with 3 assertions.

glennj avatar May 09 '24 12:05 glennj

Please switch over to having two functions, as that's what the problem specification repo instructs. Thank you

lpil avatar May 10 '24 08:05 lpil

Reworked as requested.

custom-types is no longer a prerequisite, as that's an implementation detail.

glennj avatar May 10 '24 12:05 glennj