Timeline for Array alignment addition
Current License: CC BY-SA 3.0
18 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Apr 13, 2017 at 12:39 | history | edited | CommunityBot |
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
|
|
Dec 17, 2016 at 7:44 | history | edited | Gurupad Mamadapur | CC BY-SA 3.0 |
changed the byte count.
|
Dec 17, 2016 at 7:42 | comment | added | Gurupad Mamadapur | @mathmandan Thanks for saving lots of bytes in every answer of mine :D | |
Dec 17, 2016 at 3:23 | comment | added | mathmandan | I'm getting 142 bytes. Are you using Windows? Windows usually counts newlines as 2 bytes each, but here each newline is counted as a single byte. | |
Dec 16, 2016 at 13:05 | comment | added | Gurupad Mamadapur | @vaultah Whoa, I didn't see that comma. | |
Dec 16, 2016 at 13:02 | history | edited | Gurupad Mamadapur | CC BY-SA 3.0 |
golfed further as suggested in the comments
|
Dec 16, 2016 at 13:00 | comment | added | vaultah | @GurupadMamadapur you don't need square brackets if you add a comma in the end. | |
Dec 16, 2016 at 12:59 | comment | added | Gurupad Mamadapur |
@vaultah Yes, the byte count is correct. And r+=[....] is needed. Thanks for other suggestions.
|
|
Dec 16, 2016 at 12:57 | history | edited | Gurupad Mamadapur | CC BY-SA 3.0 |
made changes as suggested in comments
|
Dec 16, 2016 at 12:46 | comment | added | vaultah |
In any case, you can save some more bytes: 1) l,k,*r=map(len,[a,b]) 2) r+=a[i%l]+b[i%k], 3) if i%k==k-1or i%l==l-1:...
|
|
Dec 16, 2016 at 12:42 | comment | added | vaultah | Are you sure your byte count is correct? I think there're only 145 bytes. | |
Dec 16, 2016 at 12:23 | history | edited | Gurupad Mamadapur | CC BY-SA 3.0 |
golfed
|
Dec 16, 2016 at 11:36 | history | edited | Gurupad Mamadapur | CC BY-SA 3.0 |
saved 2 bytes and corrected language version
|
Dec 16, 2016 at 11:30 | comment | added | Zgarb |
Neat, I didn't know about this change. You should mark the language as "Python 3.5" though, since it doesn't work in 3.4 or earlier. Also, you can drop the parentheses around l*k and have print(r);r=[] on the last line.
|
|
Dec 16, 2016 at 11:30 | comment | added | Gurupad Mamadapur |
@Zgarb the gcd in fractions module is deprecated, you can check the change here . I guess rexter is using the old version 3.4.3 .
|
|
Dec 16, 2016 at 11:10 | comment | added | Zgarb |
This gives an error for me. The gcd function is in fractions , not math .
|
|
Dec 16, 2016 at 10:25 | history | answered | Gurupad Mamadapur | CC BY-SA 3.0 |