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.
Random Perl tests produce strings with less than two characters.
Missing fixed and sample tests for strings with only 2 characters in
CS
C++
Go
Java
JS
Julia
Kotlin
Perl
PHP
R
Racket
Scala
Shell
Swift
TS
This comment is hidden because it contains spoiler information about the solution
Java fork
I am totally new to coding. I can solve most of what I've attempted but how to submit the solution is eluding me. Can anyone please assist? Do I simply paste my code in the top window?
Parameter name: arr. Arguments recieved: strings. The description does say that the function is recieving strings, but the misleading parameter name causes confusion. Please rename arr to str.
C# Function name should use
PascalCase
No random tests in shell
I don't understand. I pass all the sample tests, but when I attempt I get:
But I think I'm doing it:
Why is this happening? I'm training in C.
(UPDATE)
I don't know if this help, but I'm getting this on STDERR
On sample tests:
Expected: equal to "un"
Actual: "un"
Is it maybe the size of the string?
It's not specified if buffer sizes in C are exactly the minimum sizes needed for the answers or a few more characters are available. It makes validity of certain solutions questionable. Either it should be guaranteed that the buffer is at least as big as an initial string or tests against writing beyond the allocated buffer should be added.
https://www.codewars.com/kumite/5ba8f3fad312ddde3e00022e
Any thoughts on which is better?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Since the input parameter is mean to be a CSV string, calling it
arr
seemed misleading/deceptiveThis comment is hidden because it contains spoiler information about the solution
Loading more items...