A botanist records the age in days of each flower along a floral axis, from the base to the tip. You will write the rule that names the inflorescence, apply it to some plants, and find the oldest flower.
The idea. On a racemose axis the oldest flower is at the base. On a cymose axis the oldest flower is at the tip.
Your tasks.
kind(ages). It returns "racemose" when the first age in the list is larger than the last, and "cymose" otherwise.racemose_plants to a list of the names of the racemose plants, in the order of plants.oldest_age to the largest age on tulsi, the oldest flower of that plant.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…