6 kyu
Filter out for good!
254 of 324joh_pot
Loading description...
Arrays
Performance
Algorithms
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.
This is a very interesting one 👍
This comment has been hidden.
This comment has been hidden.
Hi,
Not sure how to classify this (issue/question/suggestion)...
I faced something pretty weird when solving this. I had a linear solution, but systematically got
RangeError: maximum call stack exceeded
in the perf tests while my solution was purely iterative. After poking around for some time, I ended up discovering this was caused bythis.push(...array)
(I guess it's related to the number of arguments...?). Anyway. This feels like clashing with the intent of the kata (my code was already matching the expected behavior about "that builtin to use this way rather than that way") so I'm wondering if, considering the rank of the kata, it wouldn't be a good idea to add a note/hint in JS about this error.=> ?
This comment has been hidden.
What is that 'pred'? Is it an arrow function? Should we use it together with filter function?
Pred is the function that gets passed into the remove method.
C#-Translation kumited!
https://www.codewars.com/kumite/579e1850bb99441f040001be
Please check and approve.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
Oh great stuff! Awesome work Steffen.
Translation approved. Thanks for your contribution mate.
This comment has been hidden.
I have already got a headache trying to pass the performance test. I wrote two algorithms but no one could pass performance test. Can you help me and tell what is the performance test?
The reason why I created this kata is to show how a built in array function is slow when you use it one large arrays. If you are using that specific native function more than once, then it doesn't matter what you do in the rest of your code, it won't pass the test. The performance test works on an array with 1 million elements. Let me know if you need anymore help.
Hi, my code works for 4 of 8 tests. I can see test case details eg array and predicate for the ones I have passed, but not the ones I have failed. Is it possible to get this so that I can try to figure out what is wrong with my code? At the moment, I can only see the expected and actual result.. Thanks!
to pass the performance test am I restricted to ES6 ?
ES6 would be slower cause it needs to go through Babel first. So no.
This comment has been hidden.
This comment has been hidden.
No feedback. Tests are fine. Closing issue.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.