Skip to main content

Timeline for Alphabet triangle

Current License: CC BY-SA 3.0

24 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited CommunityBot
Commonmark migration
Jul 25, 2017 at 9:23 history edited Syamesh K CC BY-SA 3.0
Code fixes to reduce more charectors
Jul 25, 2017 at 9:17 history edited Syamesh K CC BY-SA 3.0
Code fixes to reduce more charectors
Jul 25, 2017 at 9:10 history edited Syamesh K CC BY-SA 3.0
Code fixes to reduce more charectors
May 1, 2017 at 11:28 comment added Kevin Cruijssen Hi, I know it's been quite a while, but you can golf two things: i+=k==1?1:-1 can be i+=k and System.out.print((char)c+(c+d<65?"\n":"")),c+=d==1?1:-1); can be System.out.print((char)c+((c+=d)<65?"\n":"")));. So in total it becomes (131 bytes): for(int i=0,k=1;i>-1;k=k>-1&i<25?1:-1,i+=k)for(int c=65,d=1;c>64;d=d>-1&c<65+i?1:-1,System.out.print((char)c+((c+=d)<65?"\n":"")));
Apr 13, 2017 at 12:39 history edited CommunityBot
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Aug 8, 2016 at 4:39 history edited Syamesh K CC BY-SA 3.0
Changed logical AND(&&) to bitwiz AND(&) saved 2 bytes
Aug 8, 2016 at 4:36 comment added Syamesh K I can use bitwise operator.. Thanks.. But changing c incide will not save any charectors..
Aug 5, 2016 at 9:40 comment added user902383 you could remove int , if you declare c inside your outer for loop
Aug 5, 2016 at 9:35 comment added user902383 you could also use bitwise operator & instead logical &&, which gives you another 2 bytes
Aug 4, 2016 at 11:39 comment added Syamesh K Moved statements from loop body to increment statement section to save 3 bytes..
Aug 4, 2016 at 11:34 history edited Syamesh K CC BY-SA 3.0
I did what i could
Aug 4, 2016 at 11:25 history edited Syamesh K CC BY-SA 3.0
Added result with string result as well
Aug 4, 2016 at 11:19 history edited Syamesh K CC BY-SA 3.0
Added with string result as well
Aug 4, 2016 at 10:34 history edited Syamesh K CC BY-SA 3.0
Did as much as i can
Aug 4, 2016 at 10:12 comment added manatwork d and k can not go below -1, right? Then you can replace d!=-1 with d>-1, same for k. (BTW, you forgot to fix the golfed version.)
Aug 4, 2016 at 9:26 history edited Syamesh K CC BY-SA 3.0
Made it 157 from 165
Aug 4, 2016 at 9:19 history edited Syamesh K CC BY-SA 3.0
Made it 165 from 169
Aug 4, 2016 at 9:13 comment added manatwork There you use 4 ternary operators and all conditions are enclosed in parenthesis. You can remove those to save 8 characters.
Aug 4, 2016 at 9:11 history edited Syamesh K CC BY-SA 3.0
added 189 characters in body
Aug 4, 2016 at 9:01 history edited Syamesh K CC BY-SA 3.0
added 29 characters in body
Aug 4, 2016 at 8:59 comment added manatwork Welcome to PPCG. Please read the “How should I answer a code golf? Any hints?” section in the code-golf tag's info page. Answers to this kind of challenges are expected to present efforts to reduce the code size. In this you may find help in Tips for golfing in Java and Tips for golfing in <all languages>.
Aug 4, 2016 at 8:57 review First posts
Aug 4, 2016 at 10:36
Aug 4, 2016 at 8:54 history answered Syamesh K CC BY-SA 3.0