Timeline for Mathematics is fact. Programming is not
Current License: CC BY-SA 3.0
14 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/
|
|
Feb 7, 2017 at 23:24 | comment | added | Value Ink |
@GB yes, it works. It's just using the same principle as what your suggestion was, but instead of 0 being the optional one, ! is.
|
|
Feb 7, 2017 at 22:12 | comment | added | G B | Cool. Are you sure it works for all test cases? I can't check right now. | |
Feb 7, 2017 at 18:03 | comment | added | Value Ink |
Better yet !*$ is shorter by two!
|
|
Feb 7, 2017 at 18:03 | history | edited | Value Ink | CC BY-SA 3.0 |
added 8 characters in body
|
Feb 7, 2017 at 14:51 | comment | added | G B | And then "0$|$" could become "0?$" to save another byte. | |
Feb 7, 2017 at 9:49 | history | edited | Value Ink | CC BY-SA 3.0 |
added 77 characters in body
|
Feb 7, 2017 at 9:39 | comment | added | G B | Then you could just check for trailing '!' or zero or end of line: p~/!+$|0$|$/%2 is just 14 bytes. | |
Feb 7, 2017 at 9:25 | comment | added | Value Ink |
@GB that's a wonderful idea! However, I found a solution that's even shorter by modifying my regex to look for the position of 0 or end-of-line
|
|
Feb 7, 2017 at 9:22 | history | edited | Value Ink | CC BY-SA 3.0 |
deleted 3 characters in body
|
Feb 7, 2017 at 8:10 | comment | added | G B | Since you only check the length, you can delete the trailing zero, instead of checking "!0" first and a single zero after that. | |
Feb 7, 2017 at 8:00 | history | edited | Value Ink | CC BY-SA 3.0 |
added 79 characters in body
|
Feb 6, 2017 at 10:14 | history | answered | Value Ink | CC BY-SA 3.0 |