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.
Thanks a lot bro (@trashy_incel). Just completed the Kata now and that's all thanks to your helpful comment. Really do appreciate your comment. Cheers!
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
Thanks bro. still don't understand the Kata. But thanks for mentioning 'functional programming' will try looking that up online.
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.
I think this kata isn't so descriptive. Trying to understand what the challenge is but not grasping at all. I could use anybody's help please.
Don't get this kata please. can someone please help with a little more description please.
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.
Thanks @Chrono79. it helps to see that someone figured the problem in my code, but can you better highlight/explain the problem please. gone back to review my code and still not understanding how you mean by "minNum isn't properly initialized sometimes". Please
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/troubleshootingThis comment is hidden because it contains spoiler information about the solution
Please see if this paragraph helps: https://docs.codewars.com/training/troubleshooting#expected-the-same
Loading more items...