6 kyu
Unique Substring From Joined Strings
134 of 257obnounce
Loading description...
Strings
Arrays
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.
If this kata requires an efficient algorithm, why is there no optimization or performance tag on it? Description also only explains the most barebones basic case as if all the tests are going to be so, no mention of long strings. Pathetic kata.
The Ruby test generation isn't comprehensive :
https://www.codewars.com/kata/reviews/579541a7e1f7e6ead6000223/groups/5a3b4e9910f141619200054e
This solution can pass on occasion, but it should not as there are edge cases will are not always generated.
My solution has the same issue.
I have passed all the tests but I'm getting a message saying "undefined method `compact' for nil:NilClass (NoMethodError)". Please advise.
What language are you using? Im getting the same error and I am using Ruby. I believe it is because there are metacharacters in some of the input that appear to be throwing off your regexp. Im currently struggling with the same issue, and personally it just seems like these test cases are a bit much for the fundamentals that a 6kyu is testing.
I'm also using Ruby :) You may be right
It means you are trying to use a method on something which doesn't have it.
Even though it does not affect the outcome, should revise 'Example' in 'Description' as 'u' also included in both strings.
Thanks!