6 kyu
Find Transcription Factors
302antoniotrkdz
Loading description...
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.
Great kata but the key order thing is annoying. Either include the expected order in the description or use Chai instead of Codewars' test framework.
order of results not specified
Sorry, I am afraid I don't quite get your issue. Could you elaborate more?
The comment below
the result is sort by key like this:['ATF6', 'CREB', 'cMyc', 'Gata1', 'AhR']
. This information should be in the description of the kata.Being the result an object, I don't think the sorting order is important. Did it fail you if you try to sort the results differently? Have you tried?
Issue still exists.
Probably Test.assertSimilar compare Object.keys array, JSON.stringify or something like that.
Please use other compare function.
the result is sort by key like this:['ATF6', 'CREB', 'cMyc', 'Gata1', 'AhR']
why on earth is this marked as spoiler?
It seems pretty interesting Kata, but i Don't understand it. Why ("TGACGTGACGT"),{ ATF6: [ 1, 6 ] }), ("TGCGTGCGTG"),{ AhR: [ 1, 5 ] }) ? Who could explain please?
it happens because
So the ATF6: "TGACGT" binds the sequence "TGACGTGACGT" twice at index 1 and 6 with an overlapping T:
the "TGCGTGCGTG" sequence relative to AhR: "TGCGTG" contains an overlapping TG:
Hope it is clear now, cheers!
I seem to get everything right but the order of the result object properties prevents me from passing all the tests. Shouldn't I pass as long as the object has all the keys and its values regardless of the order of the properties?
Expected: {"ATF6":[5],"cMyc":[1]}, instead got: {"cMyc":[1],"ATF6":[5]}
I have the same problem :(.
have you tried to sort the result in a final step?
....Sort the values
It has been a nice kata to do! I have learnt new things about RegExp working with this one.
Thanks! :)
More Codewarriors should be trying this kata! It is a great way to practice with strings and objects. Thanks for creating it!
Thank you! It was fun to write it.