exercism / exercism/problem-specifications

POV: Family tree is not a good example

Ouverte
#1,950 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Ruby
Étoiles
358
Forks
563
Merge moyen
18 h 41 min
PR mergées (30 j)
2

Description

The [description of the POV exercise](https://github.com/exercism/problem-specifications/blob/37f7831be7b29edf05a5f9e56825c125c4eaf707/exercises/pov/description.md?plain=1#L10-L19) contains this part:

> For example family trees are usually presented from the ancestor's perspective

However, the exercise is about having a tree with some root and then making some other node the root. This only makes sense
a) if there is only one root node
b) if there is no direction in the tree (undirected graph) otherwise if there would a direction e.g. away from the root, changing the root would change the graph/tree.

A family tree has usually has two root nodes (2 people having offspring) and has a direction (e.g. from parent to child, it does not make sense to switch the root to a child). So a family tree is not a good example to use.

Can someone think of a better example where there is only one root and the task of changing the root but representing the same tree would actually make sense?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.