3 ms·
2048 in exactly 2048 bytes of C, counting blanks and newlines (a bit of a cheat to use indentation to push it up to 2K). https://gist.github.com/datatravelande
by kps 13y ago
2048 in exactly 2048 bytes of C, counting blanks and newlines (a bit of a cheat to use indentation to push it up to 2K).
https://gist.github.com/datatravelandexperiments/9578313 https://gist.github.com/datatravelandexperiments/9578313
Needs C99 and curses; e.g.
cc -std=c99 2048.c -lcurses
Note: This is pretty awful code, but I'd rather go to sleep than use up the blanks to make it cleaner. Don't write like this.
- rwinn 13y agoHaha that's awesome!