Problem 2093. Who is the baby and who is the daddy in this family?
Given an array of numbers that shows the characteristcs of all family members, find who is the baby and who is daddy in this family. Baby carries characteristics of every member and Dad covers everybody including himself. (Dont go by the min/max, its not about their age!)
e.g. if Lee = [32 8 4 64 16 2]; Then baby=2 and Dad = 64
Another example: Jackson = [6, 10, 16, 28] Then, baby = 2 and Dad = 1680
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers51
Suggested Problems
-
29919 Solvers
-
Determine whether a vector is monotonically increasing
22780 Solvers
-
2522 Solvers
-
"Low : High - Low : High - Turn around " -- Create a subindices vector
578 Solvers
-
Detect a number and replace with two NaN's
199 Solvers
More from this Author25
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!