6 kyu
Only Duplicates
1,971 of 3,843VictoriaDaug
Loading description...
Fundamentals
Strings
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.
Could be 7kyu.
Why this task is so ez for 6kyu? It's literally 1 string to write)XD
onlyDuplicates('abccdefee'): expected '' to equal 'cceee' running the same code in VSCode seems to filter ok can't figure out what went wrong O_o
What is your question tho? If the question is "why my code does not work" then we do not know, and we cannot tell without seeing your code.
Oh, true. The question was has anybody else seen the same problem: the function returns an empty string here, but it works in vscode
the biggest problem in your code is that you
split(' ')
on the space character, so you end up with a single chunk, since there are no spaces in the input strings.This comment has been hidden.
approved
Prolog translation
C translation (author gone)
LGTM, approved!
JS fork Chai assertions
approved
python new test framework is required. updated in this fork
Approved
CoffeeScript translation
too easy for 6 kyu
Please re-rank Kata to 7 kyu.
ranks cannot be changed
I am sorry but it is too easy for 6kyu. It feels more like 7kyu.
How did this kata end up at 6kyu!??? :o
Made a Python translation: https://www.codewars.com/kumite/5a219ac5b6cfd7172400001c?sel=5a219ac5b6cfd7172400001c Please have a look :)
Approved.
However, having a random number of random test cases is not a good idea in general, so be careful in the future.
Ok, thanks
Are you sure the regular expression tag is ok? Haven't seen a solution that needs it yet.
Good spot, tag removed. It was a leftover tag from a different kata until I decided to change it to this one. Thanks!
Marked as resolved then.
Needs random tests.
Hi, thanks for your comment. This is my first kata, would you mind explaining what is a random test and how can I create one?
The words you use to test the function are fixed, someone could simply hardcode the solution. Random test cases would generate random strings (it's harder to do, but you should do it). I've added some, see how it's done.
Random tests added.