Assuming: the genetic makeup (genotype) of a child is coded as a pair with two components, combining half genotype of one parent with half from the other parent, the possibilities are:
- A+A
- A+B
- A+O
- B+B
- B+O
- O+O
The corresponding blood group of the child will be observed (phenotype) to be A, AB, A, B, B, and O respectively. Given either genotype (3 characters, such as 'A+O') or phenotype (1 or 2 characters, such as 'A' or 'AB') of a child, a putative father, and a putative mother, determine 'maybe' or 'unlikely'.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers54
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15784 Solvers
-
Remove all the words that end with "ain"
2660 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2542 Solvers
-
Project Euler: Problem 9, Pythagorean numbers
1386 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
885 Solvers
More from this Author99
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
This needs a LOT more test cases.