This commit is contained in:
Tanguy MAZE
2019-06-22 18:23:35 +02:00
commit f9e508d5ef
173 changed files with 6727 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
Assignment name : biggest_pal
Expected files : *.c, *.h
Allowed functions: write
--------------------------------------------------------------------------------
Write a program named biggest_pal that takes a string as argument and prints the
biggest palindrome included inside this string, followed by a newline.
This string contains only lowercase characters.
If there is two palindromes of the same length, you have to print the last one.
If there is more or less than 1 argument, your program must print only a newline
only.
Exemples:
$> biggest_pal "abcba"
abcba
$> biggest_pal "aaaaaaaaaabbcbbaaaa"
aaaabbcbbaaaa
$> biggest_pal "aooibdaoiwhoihwdoinzeldaisaboyobasiadlezfdsfnslk"
zeldaisaboyobasiadlez
$> biggest_pal "aeibaabaammaabaalek"
aabaammaabaa
$> biggest_pal abeb qpinqwjobo qkmnwoiq
$> biggest_pal
$>

View File

@@ -0,0 +1,31 @@
Assignment name : biggest_pal
Expected files : *.c, *.h
Allowed functions: write
--------------------------------------------------------------------------------
Écrire un programme nommé biggest_pal, qui prend en paramètre une chaîne de
caractères, et qui affiche le plus grand palindrome trouvé dans cette chaîne suivi
d'une newline.
La chaine passée en paramètre ne contient uniquement que des lettres minuscules.
Si il y a 2 palindromes de meme taille, celui à imprimer sera le dernier rencontré.
Si le programme reçoit un nombre d'arguments différent de 1, vous ne renverrez
qu'une newline.
Exemples:
$> biggest_pal "abcba"
abcba
$> biggest_pal "aaaaaaaaaabbcbbaaaa"
aaaabbcbbaaaa
$> biggest_pal "aooibdaoiwhoihwdoinzeldaisaboyobasiadlezfdsfnslk"
zeldaisaboyobasiadlez
$> biggest_pal "aeibaabaammaabaalek"
aabaammaabaa
$> biggest_pal abeb qpinqwjobo qkmnwoiq
$> biggest_pal
$>