Calculator Community > Community Contests

[ENDED] Code Golf Contest #1 (thanks for the many submissions!)

<< < (13/13)

JWinslow23:
OK, so I have another challenge (the only submitted challenge).

See this thread for the challenge. Move all code golf discussion there, as well.

lirtosiast:
It looks like we've reached a consensus that, with the [ENDED] tag to clear things up, on-topic necroposting is allowed for after-the-fact optimizations or programming/golf tips. Therefore:

The only optimization I see in the top two TI-BASIC solutions is that on a MathPrint calculator, cumSum(binomcdf(14,0 can be randIntNoRep(1,14, saving two bytes at the cost of speed, since order does not matter. Either calc84maniac or Runer112 could have won the contest outright at 44 bytes if they had done this. Both of them noticed that If A≠1 could be optimized to If log(A, which is small but hard to notice.

JWinslow23:

--- Quote from: lirtosiast on June 11, 2015, 06:07:38 pm ---It looks like we've reached a consensus that, with the [ENDED] tag to clear things up, on-topic necroposting is allowed for after-the-fact optimizations or programming/golf tips. Therefore:

The only optimization I see in the top two TI-BASIC solutions is that on a MathPrint calculator, cumSum(binomcdf(14,0 can be randIntNoRep(1,14, saving two bytes at the cost of speed, since order does not matter. Either calc84maniac or Runer112 could have won the contest outright at 44 bytes if they had done this. Both of them noticed that If A≠1 could be optimized to If log(A, which is small but hard to notice.

--- End quote ---
Well, I didn't have a MATHPRINT calculator (and others here don't either...take Zeda/Xeda, for example), and I had to be able to test the solutions myself. If anybody makes a solution that requires any TI-84+ OS 2.53 or over, we should make that a separate category. In my opinion.

Sorunome:
I don't think that it should be a separate category, as else for languages like php you'd have to make a separate category for every module you use because it might be disabled in the php.ini .

JWinslow23:

--- Quote from: Sorunome on June 12, 2015, 04:55:20 pm ---I don't think that it should be a separate category, as else for languages like php you'd have to make a separate category for every module you use because it might be disabled in the php.ini .

--- End quote ---
...OK, then I guess MATHPRINT-only commands are disallowed.

Navigation

[0] Message Index

[*] Previous page

Go to full version