#C, 140 bytes
Pass a NULL-terminated array of strings to f()
, and it will print out the missing names.
n;f(char**p){char*a[]={"Blinky","Inky","Pinky","Clyde",0},**s=a,**r=p;for(s=a;*s;++s){for(p=r;!n&&*p;++p)n=!strcmp(*s,*p);n||puts(*s);n=0;}}
#C, 140 bytes
Pass a NULL-terminated array of strings to f()
, and it will print out the missing names.
n;f(char**p){char*a[]={"Blinky","Inky","Pinky","Clyde",0},**s=a,**r=p;for(s=a;*s;++s){for(p=r;!n&&*p;++p)n=!strcmp(*s,*p);n||puts(*s);n=0;}}