6 kyu
Fun with lists: filter
679 of 1,153janitormeir
Loading description...
Lists
Functional Programming
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.
Python translation
Small grummar error - in "and the predicate x => x >= 2", need to be "x -> x >= 2".
I like this series :)
c: "..and can hold any type of value." ?
typedef bool (*predicate_func) (
int
);
removed
Java emits warnings to STDERR because of missing type specifiers :
fixed
I'm running this Kata under Node 8.1.3, and every time I return anything it tells me that I've returned [undefined], even when I return a test string. I've even manually returned [1,2,3] and it tells me that I've returned []. So I don't know what I'm doing wrong. I feel that my logic is well done and should work, but something seems to be wrong with the enviroment?
You must return a new linked list (using the
Node
constructor). Currently you are returning an array of filtered nodes data. If you are not familiar with that, you should train on other easier katas using linked list and come back to this after, you'll see it's not hard actually.Thank you. I just reread it and I did miss that I needed to return a linked list instead of an array.
Whyt am i getting this error "STDERR assertSimilar is deprecated, use assertDeepEquals"?
That's a warning, if you don't want to see it, choose Node 8.3 until the kata is updated.
C translation (author gone)
Approved :)
I'm completely stucked in this one, I have almost no experiencie with this kind of data structure Can anyone give me a hint on the solution? Thanks
Just wanted to let you know that I absolutely love this series.
However I think that this one is the hardest and probably worth 5kyu rating, but whatevs :)
@akrammon,
When a Kata is brought out of beta, its rank is determined not by the author himself/herself but by the moderator who approves it according to the average ranking that the community gives and not by his/her own judgement. Since most users probably found this Kata to be a difficulty of around 6kyu, this rank was selected for this Kata when a moderator approved it.
I do however agree that this Kata may be a bit challenging for users who are not entirely familiar with linked lists. If more people think that this Kata is worth 5kyu, I could potentially change the rank from 6kyu to 5kyu since I am a moderator but I am a bit reluctant to change it at this stage because not everyone may agree.
Cheers, donaldsebleung :D
Thanks for the feedback! More to come...
Hi donaldsebleung,
Yes, I understand how the system works, just wanted to leave my 2 cents because I didn't vote in beta stage.
Overall, it is acceptable as a hardish-6kyu Kata, I just think that in relation to the other 6kyu rated Katas in this series, this seems hard.
But it's definitely not a huge problem to have a hard-ish 6kyu Kata, after all this is what the others voted in beta :-)
akrammon
PHP Translation Kumited - please accept :D
Done! thanks
This comment has been hidden.
Understood - checking...
Done
Hardest of the series. :-) Good job.
Thanks :) Few more to come...
One speeling error. Fixed that, and approved while I was at it.
Keep up the good work!