* translations of quest11 linked lists
* translations quest 11 and 12, and correction of isprime and find nextprime readmes
* Corrected spelling mistakes.
pull/298/head
Christopher Fremond5 years agocommitted byMarieMalarme
In order to move subtrees around within the binary search tree, write a function, `BTreeTransplant`, which replaces the subtree started by `node` with the node `rplc` in the tree given by `root`.
In order to move subtrees around within the binary search tree, write a function, `BTreeTransplant`, which replaces the subtree started by `node` with the node called `rplc` in the tree given by `root`.
In order to move subtrees around within the binary search tree, write a function, `BTreeTransplant`, which replaces the subtree started by `node` with the node called `rplc` in the tree given by`root`.
Afin de déplacer les sous-arbres dans l'arbre de recherche binaire, écrire une fonction, `BTreeTransplant`, qui remplace le sous-arbre commencé par `node` avec la node `rplc` dans l'arbre donné par`root`.
Write a function `ListAt` that takes one pointer to the list, `l`, and an `int` as parameters. This function should print a `NodeL` in the position `pos` in the linked list.
Write a function `ListAt` that takes a pointer to the list `l` and an `int pos` as parameters. This function should print the `NodeL` in the position `pos` of the linked list `l`.
- In case of error it should print `nil`
- In case of error the fonction should print `nil`.
Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`.
Écrire une fonction `ListAt` qui prend un pointeur sur la liste `l` et un `int pos` comme paramètres. Cette fonction devra afficher la `NodeL` à la position `pos` de la liste chaînée `l`.
### Fonction attendue
- En cas d'erreur la fonction affichera `nil`.
### Fonction et structure attendues
```go
```go
func CountIf(f func(string) bool, tab []string) int {
Write a function `ListFind` that returns the address of the first node in the list that is determined to be equal to `ref` by the functions`CompStr`.
Write a function `ListFind` that returns the address of the first node in the list `l`that is determined to be equal to `ref` by the function `CompStr`.
- For this you shoud use the function `CompStr`.
- For this exercise the function `CompStr` must be used.
Écrire une fonction `CountIf` qui retournes le nombre d'éléments d'un tableau de `string` pour lesquels la fonction `f` retourne `true`.
Écrire une fonction `ListFind` qui retourne l'adresse de la première node dans la liste `l` qui est déterminée comme étant égale à `ref` par la fonction `CompStr`.
### Fonction attendue
- Pour cet exercice la fonction `CompStr` doit être utilisée.
### Fonction et structure attendues
```go
```go
func CountIf(f func(string) bool, tab []string) int {