??? 06/11/07 11:42 Read: times |
#140544 - my 36 Responding to: ???'s previous message |
I know this is no better than the current top, but please note the careful optimisation to include only one literal number, which is NOT 8 (nor --8 or ++8):
UC r,i=1;WH(r+=c&i?r++:r,i+=i);RT r;I admit I just learned one more True-C feature: the comma operator. Thanks, Chris! Without this, my best was 39 (and used 2 literals :-( ): UC r,i=0;WH(i+=i?i:1)r+=c&i?r++:r;RT r; JW |