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.
Changing this will break all the solutions, and it's not really important here.
Appreciated, thanks :)
Apologies, I'm going blind :-S
I'll hide that repo, thanks for pointing it out!!!
Done, I've deleted the repo with solutions.
First point of the notes:
Edit: also, your github account has a repo featured with kata solutions - please remove it or make it private (in bitbucket is for free), as you are not meant to share them.
This only works for positive numbers and maybe I'm missing something, but the description doesn't limit to only positives.
For example: -10, 5, 6. It returns 1, but max is 20 for -10 + 5 * 6.
I've been trying to wrap my brain around this, but I can't figure out how this particular reduce callback works. Could someone please explain? Thanks :)
It's meant to be very simple so I don't think there is any way to make this more interesting without changing the concept (i.e. using something besides math operations). You could make your own kata with a more intersting idea.
Glad you enjoyed. :)
This kata was fun, but I think it should either be trimmed to just one operation implementation or made a little more interesting. As it is now, it's basically just repeating the same code four times.
I found the description of this Kata to be clearer than most other ways of presenting this problem that I have come across. But you're right, I also spent more time understanding the requirements than implementing the solution.
Your Select-code didn't return anything... It was without effect.
Generally you are completely right: Changing a parameter is bad style. But in this kata it is part of the task, that is described .
Thank you for this Kata, it's been really fun! I had done something similar a while ago, but you added the extra challenge of having identical characters alongside the parentheses.
https://en.wikipedia.org/wiki/Side_effect_(computer_science)
Right! I'm used to methods returning the solution instead of changing the value of a parameter.
A Select is not changing the Array/List, but it creates a new Enumerable. So you don't change anything.
Loading more items...