5 kyu
N-Hybrid Inheritance
Loading description...
Probability
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.
Quite a challenging kata, well done.
Question might be a bit idiotic, But I dont understand how to correlate the input with the Allele. Why is Bb ----> B, b while AbCd ----> AC,Ad,bC,bD. What would happen if I had for example 8 digits? QwErTyUi -----> QETU, QETi, QETy etc etc??? Is it just the input/2 in every combination
Nice one. Function's name is not snake case, the test framework should be imported explicitly, and the return type could be a fraction. Anyway, I'm going to approve it (and then fork it if needed) in the coming days if no one complains in the meantime.
added imports; I suggest we make the method name
nhi
, but also allowNHI
in case we don't find it (who knows how to do that in Python ?)There could be a better way to do it but that works with the current tests.
thanks, something along those lines worked
Is it assumed that Father's alleles and the Mother's alleles are the same? This is the case in the examples, but it's not explicitly stated. Or is it possible to have something like: Father's alleles are Bb and the Mother's alleles are Rr, and if so, how is this interpreted?