Name: Anonymous 2018-10-29 20:43
Create an algorithm that will infinitely compress any data.
while(true)
compress("any data") #include "void.h" #include <stdio.h>
int main(int argc, char **argv){
printf("\x22"); //infinite lossy compression - compresses any data to one byte which is also dubs
} public File compressorFunction (File fileToCompress) {
//does nothing with the argument because who cares
File compressedFile = null;
return compressedFile;
} int compress(char *input) {
return !strcmp(input, "any data") ? 1 : 0;
}