-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add zebra-puzzle exercise #475
base: main
Are you sure you want to change the base?
Conversation
I'm sure there's an "eleganter" way solve this, but ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
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?
config.json
Outdated
"practices": [], | ||
"prerequisites": [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add the practices and prerequisites please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do.
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. |
Please switch over to having two functions, as that's what the problem specification repo instructs. Thank you |
Reworked as requested. custom-types is no longer a prerequisite, as that's an implementation detail. |
I'm sure there's an "eleganter" way solve this, but ...