6 kyu
Required Data I
697 of 1,316raulbc777
Loading description...
Algorithms
Data Structures
Sorting
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 new test framework is required. updated in this fork
Approved!
what is Either . Why can't a simple object be returned? Why complicate? I come here not to learn new things, but to solve new problems.
< I come here not to learn new things
wha?!
...
Either
was removed. There is noEither
in the Java stdlib, and there was noEither
in preloaded either ;-)Object[]
is the correct return typeJava: the return type in the initial solution should be
Object[]
.done here + upgraded to JUnit 5 + better assertion messages
My solution have failed the random test, if the input array contains 0, the test does not take it correct.
added.
.
Ruby 3.0 should be enabled
Unnecessary logs should be removed
JS Node 14. should be enabled
Unnecessary logs should be removed
done
Description should be language-agnostic
done
( JS, possibly others )
Needs a fixed test
[] -> [0,0,0,[[],0]]
.Note that the reference solution breaks on this test.
Nice kata;-)
Haskell : https://www.codewars.com/kumite/5be9af9988c754aa470000a6?sel=5be9af9988c754aa470000a6
Raul, I adjusted the return type as lists in Haskell can't have mixed types but touples can.
It's approved.
C#-Translation kumited!
https://www.codewars.com/kumite/57c5611ecd0604c8c3001b75
Please check and approve it! :-)
Great kata! Thanks. ;-)
Hey, think the third python test case should be:
test.assert_equals(count_sel([-2, 4, 4, -2, -2, -1, 3, 5, -5, 5]), [10, 6, 3, [[-2], 3]])
Yes, you're right. Even though I had corrected before, the system didn't the correction, due to my fault. I appreciate your contribution.
Tests are broken for Python, both example and basic:
Thanks a lot for the feedback. It's fixed.
Thanks for taking a look! But I'm still getting the same error. I'll clear cache and all that when I get a chance and see if its anything on my end.
Yeah no dice. Tests give same error.