From 04f2d0e9024dca69050132c8503904aba40e7b3f Mon Sep 17 00:00:00 2001 From: abo64 Date: Tue, 6 Dec 2016 07:58:25 +0100 Subject: [PATCH] Add hints to leap exercise --- exercises/leap/HINTS.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 exercises/leap/HINTS.md diff --git a/exercises/leap/HINTS.md b/exercises/leap/HINTS.md new file mode 100644 index 00000000..9cbeb40b --- /dev/null +++ b/exercises/leap/HINTS.md @@ -0,0 +1,4 @@ +## Hints +Try to avoid code repetition, use private helper functions if you can. + +And you might consider using a single `Boolean` expression instead of `if-else` for better readability. See [here](http://cs.wellesley.edu/~cs111/spring00/lectures/boolean-simplification.html) on how this could be done (the link is for Java, but of course the logic is valid for Scala, too).