Timeline for Balancing Words
Current License: CC BY-SA 3.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 17, 2020 at 9:04 | history | edited | CommunityBot | Commonmark migration | |
| Jul 8, 2015 at 18:34 | comment | added | rink.attendant.6 | I'm trying really hard to beat C with PHP but I'm still a byte off | |
| Jul 8, 2015 at 17:15 | history | edited | some user | CC BY-SA 3.0 | added 14 characters in body |
| Jul 8, 2015 at 17:12 | comment | added | some user | I think you should post it anyway. I also realized that I should have get rid of my #define as it is wasting bytes. | |
| Jul 8, 2015 at 15:46 | comment | added | Cole Cameron | My solution was too similar to yours to post an answer, but I was able to get down to 146 chars: i,l=1,j;g(char*v){for(;v[i]&&l;++i)for(j=l=0;v[j];++j)l+=(i-j)*(v[j]-64);l?printf("%s DOES NOT BALANCE",v):printf("%.*s %c %s",--i,v,v[i],v+i+1);} Note: uses undefined behavior :) | |
| Jul 8, 2015 at 3:30 | history | edited | some user | CC BY-SA 3.0 | simplified string printing |
| Jul 7, 2015 at 22:04 | history | edited | some user | CC BY-SA 3.0 | Added Verification |
| Jul 7, 2015 at 21:58 | history | edited | some user | CC BY-SA 3.0 | Used "break" instead of "return" |
| Jul 7, 2015 at 21:52 | history | edited | some user | CC BY-SA 3.0 | Fix alignment in pretty code |
| Jul 7, 2015 at 21:47 | history | edited | some user | CC BY-SA 3.0 | More reduction |
| Jul 7, 2015 at 21:37 | history | edited | mbomb007 | CC BY-SA 3.0 | formatted header and added prettify markup |
| Jul 7, 2015 at 21:27 | history | edited | some user | CC BY-SA 3.0 | deleted 24 characters in body |
| Jul 7, 2015 at 21:19 | history | answered | some user | CC BY-SA 3.0 |