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.
percentage of completions doesn't correlate to ranking of a kata
there could be an easy concept that not many people know about it, doesn't make it a difficult concept, right?
yea, and if less than 25% of the coders were successful, then this certainly is NOT a 7 kyu. 10,000 annoyed coders is proof.
So the test cases are failing? Then you did something wrong in your code.
Posting the actual output of the test cases would be very helpful in figuring out the issue.
As KillyKicks342 found out, one issue could be that you are not returning a value but only printing it. With this it also helps to know the programming language you are using, as some programming language don't allow you not to return no value while others do.
Either way, the FAQ link that hobovsky posted should help most people with this issue.
I had the same problem. My fix was changing a print function to a return function.
you have to figure out what datatype your function should return so that the syntax becomes valid
You should implement a function
add
which:n
f
which:m
n + m
Expanding the example from the description:
You not knowing anything about functional programming doesn't mean that the description is unclear, not an issue.
BobtheLantern explained the problem in detail, I'll add, don't abuse ternary operator, it might look cool and short, but when it fails like in this case, you'll have troubles figuring out why.
This comment is hidden because it contains spoiler information about the solution
Not a kata issue, it's a problem with your code,
minNum
isn't properly initialized sometimes. Mark your post as having spoiler content next time, read this, please: https://docs.codewars.com/training/troubleshootingPlease see if this paragraph helps: https://docs.codewars.com/training/troubleshooting#expected-the-same