Skip to main content

Timeline for Very Simple Triangles

Current License: CC BY-SA 3.0

2 events
when toggle format what by license comment
Mar 27, 2015 at 10:19 comment added VisualMelon Nice work! Note that it is never better to use a whileloop, rather use a for loop. In this case you can save 2 bytes by including the definition of m in the for loop initialisation, and b=!bin the last thing whatever it's called. You can also make savings by replacing string and bool with var. You also don't need the "()" around n>1 clauses, and in the s+= clause you can use the non-short circuiting & rather than && as there are no side-effects or dereferences to go wrong. Finally, 1>0 is shorter than true ;)
Mar 25, 2015 at 4:01 history answered bacchusbeale CC BY-SA 3.0