Nom Défis : Algorithme lvl1
Auteur : TheHardButcher
Points :
- Objectif 1 : 2 pts
Fichier joints :
Aucun
Objectif 1 :
Créer une fonction aillant pour entrer une chaine de caractère et pour sortie :
1. La chaine de sens inversé (AZE->EZA)
2. La chaine passez dans un réflecteur (A->Z, B->Y, etc)
3. La chaine coupé en deux si c’est un palindrome
Exemple :
Entrée :
HELLO
Sortie :
OLLEH
SVOOL
Entrée :
BOOB
Sortie :
BOOB
YLLY
YL-LY
Entrée :
BONOB
Sortie :
BONOB
YLMLY
YL-LY
Auteur : TheHardButcher
Points :
- Objectif 1 : 2 pts
Fichier joints :
Aucun
Objectif 1 :
Créer une fonction aillant pour entrer une chaine de caractère et pour sortie :
1. La chaine de sens inversé (AZE->EZA)
2. La chaine passez dans un réflecteur (A->Z, B->Y, etc)
3. La chaine coupé en deux si c’est un palindrome
Exemple :
Entrée :
HELLO
Sortie :
OLLEH
SVOOL
Entrée :
BOOB
Sortie :
BOOB
YLLY
YL-LY
Entrée :
BONOB
Sortie :
BONOB
YLMLY
YL-LY