6 kyu
Decompose double strand DNA into 6 reading frames
98 of 209Javatlacati
Loading description...
Strings
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.
See comments below. Coffeescript translation is bugged and requires the user to provide a hidden function
reverseSingleStrand
which influences reference solution.The basic test expect: 'Frame 1: AGG TGA ...' but the randoms test expets : 'AGA CGA GCT ..' and is imposible complete this kata.
language?
CoffeScript
Well at leat one person has completed the kata on coffeescript so perhaps you are not asking the right questions
The only way to solve it is to evaluate if the input string matches the basic test and return the output in the format of that test, otherwise return in the manner expected by the random tests. But that solution implies bad practices. The random tests do not respect the format of the output requested in the description of the Kata.
please ellaborate
Output required by the instructions:
Output required by the basic test:
Output required by Random tests:
Note the first line of the outputs
Obviously that makes it impossible to complete the kata.
I think that this is some issue specific to your solution since other people can pass both basic an random tests with the same code. You can paste your code here and mark it as spam so those that have already completed it can help you.
This is a problem with the Coffeescript translation, NOT with the user's solution. The reference solution depends on a function
reverseSingleStrand
which the user has to create to be able to build the tests, but this gives users autonomy over part of the expected resultssee my solution how I messed up both my solution and the reference solution, and still was able to pass the kata
Over all this is a good kata, but the output format isn't clearly specified and I ended up having to throw the expected output and my own output into a diff in order to spot whitespace differences. Same feedback applies to the single strand kata.