7 kyu
Zip it!
427 of 986joh_pot
Loading description...
Arrays
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
The description for the C function is totally inadequate and doesn't make clear how allocation works.
Why the heck would you disable
Function.prototype.toString
? Is it cheating to see what the input is?Update: I've enabled it for now because Chai requires it.
Thanks, closing ! All katas should not have such preloaded cases IMO in JS
Missing solution and test imports in python
Updated to Node v14
C : what's the use of the
result_item_size
parameter ? It doesnt seem to be useful since the selector function handles the memory allocation for us, so we never have to care about the size of the result items.I validated the kata without using it.
The instruction for C is very non-informing, and really could use an update to make this doable without endless trial and error.
What does the pointer to the function func do ? Is it the function I'm supposed to write, and set func to point at ? If I'm supposed to set it, why isn't it intiaially set to point to NULL?
The arrays in the sample tests use ints and chars, but when I look at what is expected it's zero-terminated strings. What is the expected format of the output in the merged arrays?
You dont have to modify it. It is the equivalent of
fn
in the javascript version. This function takes an element from each of the 2 arrays and returns an allocated object containing the merged items.Thank you, I completed it now. It's a very lacking description of the task.
Re-raising issue below.
"I don't WANT to forfeit a kata for such a trivial thing." == a suggestion.
"I CANNOT complete this kata because something is broken" == an issue.
If and when CW drops supports, then I will consider patching it up. Reclosing issue.
Python 3 should be enabled.
Raising an issue on a kata that was created ages ago to enable a newer version is not an issue. If you want to enable, go ahead.
C translation kumited! :)
Thanks, approved.
One year ago this kata would be 5kyu, but our coders unbelievably skilled atm so the newest kata's are pretty underrated :)
I'm confused about what to expect in the "fn" argument. I'm trying to display this function's content with console.log(fn.toString()) but that's causing an error. Can someone give me a gentle nudge in the right direction?
Try again, it is now enabled.
C#-Translation kumited!
https://www.codewars.com/kumite/57b35b371fae8ac41d00009d
Please check and approve it! :-)
Thanks! Approved.
Forgive the n00bish question, but in a.zip(b, (a, b) => a + b)
What is: "(a, b) => a + b"
Never seen this before.
it's an arrow function, documentation Here
And Python translation submitted :)
Thanks Giacomo, it has been approved. Could you please add the example to the Python description when you have some time?
Done :)
The description could use some cleaning up. There's an abrupt cutoff after the first word, "block" is repeated one with formatting and once without, etc.
Updated. Thanks for reporting.
Ruby translation kumited (uses a block instead of a function)
Thanks. Approved.