2d
comment maintaining TreeSet sort as object changes value
To down-voter - why?
Apr
27
comment Count up folks!
Thanks for the tip regarding return; also adding an iostream version, as you are again right - same byte count.
Apr
27
revised Count up folks!
removed return; added iostream version
Apr
27
comment Count up folks!
Yes - and thanks to you, I now know how to link comments :-)
Apr
27
comment Count up folks!
you can save 6 chars by replacing main(){int c;std::cin>>c;for(int x=1 by main(x){int c;std::cin>>c;for( - x will be an int initialized to 1 for free. Still, it will be 32-bit, (see my other comment), so you cannot count up to the full (2<<64)-1
Apr
27
comment Count up folks!
gcc is considered sort of a golden standard as far as C compilers are concerned. Since default gcc has always supported missing #include <stdio.h>, and corner-cutting is in general encouraged in code-golf, I still think this is legit. @Dennis seems to agree in a comment to this question.
Apr
27
answered Count up folks!
Apr
27
answered Count up folks!
Apr
27
comment Count up folks!
int is not 64 bits on most platforms - you should probably use long instead
Apr
25
answered Create a Boolean parser (continued)
Apr
25
revised Create a Boolean parser (continued)
added syntax highlighting hint
Apr
25
answered Create a Boolean parser (continued)
Apr
20
comment A Numpad's Knight Numbers
Nice - also, don't forget to use <s>oldscore</s> newscore when editing to reflect score improvements, and <!-- language-all: lang-c --> before your code starts to fix syntax highlighting. I also managed to reduce my byte-count somewhat by dropping the loop altogether
Apr
20
revised A Numpad's Knight Numbers
recursive!
Apr
20
comment A Numpad's Knight Numbers
those lookup tables are huge. You can improve your score a lot if you get rid of all the delimiters {,}[] and encode it as a char* string instead. Also, note that your #define is not being cost-effective when you use it only twice: removing it would save you 4 bytes.
Apr
20
answered A Numpad's Knight Numbers
Apr
18
revised Expand a C array
fixed typo in link to bnf's idea
Apr
18
revised Expand a C array
15 bytes shaved thanks to sprintf
Apr
18
comment Expand a C array
you can avoid using strcat by concatenating o inside sprintf, via %s. This should shave around 7 chars.
Apr
18
answered Expand a C array
1 2 3 4 5