Skip to main content

Timeline for Tips for golfing in <all languages>

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Jan 26, 2017 at 14:46 comment added mbomb007 @Lynn See this Python tip for more info: codegolf.stackexchange.com/a/41217/34718
Jan 17, 2017 at 12:01 comment added lynn Very similar: for(y=0;y<Y;++y)for(x=0;x<X;++x) can often become for(i=0;i<X*Y;++i) with x replaced by i%X and y replaced by i/X.
May 2, 2016 at 20:02 review Suggested edits
May 2, 2016 at 20:13
Feb 20, 2015 at 2:41 history wiki removed Doorknob
Jul 31, 2013 at 19:12 comment added kaoD Woops, I read that very late in the night. You're right!
Jul 31, 2013 at 11:42 comment added Gaffi I'm looking at this again (much, much later), and I don't understand my own question now. I maybe didn't understand the ternary operation before? The way I see it now, it makes sense.
Jul 31, 2013 at 8:31 comment added ugoren @kaoD, in both cases foo is called a times, bar is called b times. This is because in "after", the loop runs a+b times, the first a call foo, the next ones call bar.
Jul 31, 2013 at 7:51 comment added kaoD ugoren the loops are still not the same. @Gaffi is right.
Mar 30, 2012 at 8:47 history answered ugoren CC BY-SA 3.0