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.
Test, ob das hier auch andere lesen können.
I understand
x => x
as a function just giving back the parameter.Why are only the true ones counted?
I like that solution because one could easily change the word 'bingo' with 'zakila' for example.
I like.
This working is actually just luck and just works for an uneven array length.
If you add another 1 to the test case [1, 1, 2] it doesn't work anymore.
Erst wenn die Wolken schlafen gehen,
kann man uns am Himmel sehen.
Wir haben Angst und sind allein.
Der Herr Gott weiß ich will kein Engel sein.
I don't get the part where c is a boolean but also remembers carrying the number into the next loop.
Why is that?
Edit: got it.
If you add a variable with true to a number the truth equals to one.
So:
var a = 5
andvar b = true
becomes witha + b
a solid6
.Didn't know that.
Amazing. Don't quite get the math though.
A link to an explanation about what's going on here would be much appreciated.
for js guys: console.log takes time :)
(not sure if that qualifies as a spoiler)
This comment is hidden because it contains spoiler information about the solution
I have no clue how I write the test cases for this kata.
Should I ignore them and just try to submit my code?
I don't understand this concept.
Does it mean something like:
(<put-a-function-here>)(<put-the-arguments-here>)
Could you point me in the right direction?
This comment is hidden because it contains spoiler information about the solution
Thank you very much sir!
Is getting the guess variable to evaluate to the second argument of the function a good start?