In questa sfida, dato un elenco di fantasmi di Pac-Man, devi produrre quali fantasmi mancano. È necessario farlo nel minor numero di byte possibile
Ingresso
L'input sarà costituito da una stringa o da un elenco, che includerà un numero di fantasmi, che potrebbero includere;
- blinky
- inky
- Pinky
- Clyde
Tuttavia, l'input può anche includere Pac-Man (con quella punteggiatura). Pertanto, la quantità massima di elementi in un elenco sarà cinque, in qualsiasi ordine. Si può presumere che nessun elemento non valido sia presente nell'elenco
Produzione
L'output sarà costituito da una stringa o da un elenco. Ciò includerà tutti i fantasmi che non sono nell'input, in qualsiasi ordine. Tuttavia, se Pac-Man è nell'input, tutti i fantasmi saranno considerati mancanti (perché li mangia).
Casi test
input: Clyde
output: Blinky, Inky, Pinky
alternate output: Inky, Pinky, Blinky
or one of the other 4 permutations
input: Clyde, Blinky # or however you delimit it
output: Inky, Pinky
alt: Pinky, Inky
input: Pac-Man, Clyde
Output: Blinky, Inky, Pinky, Clyde
or you could output one of the other 23 permutations
input:[null]
Output: Blinky, Inky, Pinky, Clyde
or you could output one of the other 23 permutations
Questo è codegolf, quindi più basso è il numero di dipendenti, meglio è.
[null]?