Skip to main content

Timeline for Blue duck, red duck, gray duck

Current License: CC BY-SA 3.0

11 events
when toggle format what by license comment
Mar 22, 2018 at 13:54 comment added pgblu Clever, I like the use of a loop that exits when the index variable (which is not being used as an actual index lol) hits 1
Mar 20, 2018 at 21:11 history edited rexkogitans CC BY-SA 3.0
deleted 8 characters in body
Mar 20, 2018 at 18:14 comment added Digital Trauma Why do you need to keep ${#a} instead of 8? This is code-golf - there is no need to give your code generalisability to be modified for a different number of colours. All you need to do is meet the spec in the smallest number of bytes.
Mar 20, 2018 at 7:02 comment added rexkogitans I stripped >0, however, I left ${#a} instead of 8.
Mar 20, 2018 at 7:01 history edited rexkogitans CC BY-SA 3.0
added 27 characters in body
Mar 19, 2018 at 20:51 comment added Digital Trauma Yep, I like the pure-bash answers too. Here's another 10 bytes off
Mar 19, 2018 at 19:53 comment added rexkogitans @DigitalTrauma I was in hurry, but I wanted a pure Bash solution w/no GNU coreutils. I could shrink it from 112 to 105 bytes.
Mar 19, 2018 at 19:51 history edited rexkogitans CC BY-SA 3.0
deleted 14 characters in body
Mar 19, 2018 at 17:56 comment added Digital Trauma Lots of opportunities to golf this - check out the bash golfing tips
Mar 19, 2018 at 14:31 review Low quality posts
Mar 19, 2018 at 14:31
Mar 19, 2018 at 14:15 history answered rexkogitans CC BY-SA 3.0