Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Adjustments look good. I'd approve if I could. I thought I had the power.
I think I was trying to agree with you that the large test would do well to discourage innefficient solutions. :-)
Thanks for the feedback. Please see below:
Overall, great submission! I have a few observations:
[][]
; The number of dimensions are already found in the size3 x 3
.3 x 3 - Chars
vs random test namestring[][]/3 x 3
.char
where the random test produces a matrix ofString
.This comment is hidden because it contains spoiler information about the solution
Nice to see a
Stream.unfold/2
solution!I wonder if directly using
Enum.count/1
to avoid allocating a list would reduce memory usage significatly.Did you know there is a built-in
Integer.is_even/1
?Use
Kernel.div/2
for integer division to avoid rounding.Look into
Stream.unfold/2
and compare how that would change the implementation.