Today's problem is a fun one. We'll take the classic algorithm, insertion sort, and see who can implement it correctly with the fewest bytes of code. Each character and new line counts as a byte of code for this exercise. The list you're sorting doesn't count towards the overall byte count. Can you get below 100?
Comments:
Anonymous - 9 years, 9 months ago
Got it down to 105 bytes so far
reply permalink
David - 9 years, 8 months ago
I'm sure someone with more code golf experience than me could shave off a few more characters here or there. Especially if taking advantage of various compiler exploits. Adding main, mine still compiles with Sublime's default C compiler.
I'm stuck at 112 relevant bytes. Readability:
Minimized
reply permalink