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.
The description says to return 'null' in C#, 'None' in Rust, etc. It doesn't say anything about return types in R.
I think your point stands for the 'R' version though, because it is disproportionately difficult in R for an 8 Kyu kata - no beginner R programmer is going to think of the difference in return types between 'return(NULL)' and 'return(NA)'.
I agree with you that the R version really needs a hint to use an 'NA' return type.
LOL, translating it from a python solution doesplain why it isn't a very "R" way of doing things!
Please use a spoiler flag, comments are visible to everyone by default.
This comment is hidden because it contains spoiler information about the solution
I agree it's very expensive at runtime.
This is supposed to be coding practice though. It's like if the task was to sort a vector and you used R's built-in
sort()
function. Yeah... that works, but then what's the point? This is supposed to be a 6 kyu exercise, meaning it should take more than using a built-in function to accomplish.Fixed broken R kata with a fork.
https://www.codewars.com/kumite/59b8ba985227dd140200000b?sel=5f6de9a0b0d883002923f25c
I understand. I think there is a) not to reinvent the wheels, and b) write one's own code to show capability. Depending on the goals we may have different views, but I completely understand you.
This makes the problem trivial and is therefore not a good solution.
Fixed Kata with a Fork: https://www.codewars.com/kumite/59b8ba985227dd140200000b?sel=5f6de9a0b0d883002923f25c
You can comment in the already open issue. Or try to fix the problem with a fork.
Yep, still an issue half a year later.
Duplicate issue.
Loading more items...