Timeline for 1, 2, Fizz, 4, Buzz
Current License: CC BY-SA 3.0
22 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 17, 2020 at 9:04 | history | edited | Community Bot |
Commonmark migration
|
|
| Apr 19, 2018 at 17:32 | comment | added | BradC | Code and explanation didn't match. Took the opportunity to edit in @Muqo's suggestions. | |
| Apr 19, 2018 at 17:31 | history | edited | BradC | CC BY-SA 3.0 |
Synched up code and explanation, incorporated Muqo's suggestions, saving 14 bytes
|
| Apr 13, 2017 at 12:39 | history | edited | Community Bot |
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
|
|
| Jul 21, 2016 at 13:59 | comment | added | Muqo |
Good work, but this needs more golfing. Use GOTO, not WHILE. Skip CONCAT because you need to force only @ to be a string, so just enclose it in LTRIM or something. Use + for the Fizz and Buzz IIFs, and nest that in the IIF for the other numbers. Remove as many spaces as possible. I can get your entry down to 110 doing all that.
|
|
| May 7, 2016 at 4:08 | comment | added | Phrancis |
Using + instead of concat made it to where the cast would be needed again, so based on character count I stayed with concat
|
|
| May 7, 2016 at 4:07 | history | edited | Phrancis | CC BY-SA 3.0 |
deleted 64 characters in body
|
| May 7, 2016 at 3:59 | comment | added | Phrancis |
@MickyT the iif(@ % 3 * @ % 5 <> 0, @ , null) worked great, wow
|
|
| May 7, 2016 at 3:55 | comment | added | Phrancis |
I think casting to char might violate the rules of the contest, since it will pad with spaces when the number is less characters than the specified amount...
|
|
| May 7, 2016 at 1:53 | comment | added | MickyT |
You may want to try the last iif with no cast and a NULL instead of an empty string, otherwise the concat can be replaced with +. don't know what i was thinking when I first suggested it. also char may work if the cast can't be removed.
|
|
| May 7, 2016 at 1:34 | history | edited | Phrancis | CC BY-SA 3.0 |
added 116 characters in body
|
| May 7, 2016 at 1:34 | comment | added | MickyT | Sorry about that, SQL fiddle didn't want to play for me.. | |
| May 7, 2016 at 1:34 | comment | added | Phrancis | @MickyT got it down to 143 thanks to your suggestions! | |
| May 7, 2016 at 1:33 | history | edited | Phrancis | CC BY-SA 3.0 |
added 116 characters in body
|
| May 7, 2016 at 1:19 | comment | added | Phrancis |
@MickyT thanks for the advice! However the way you wrote it produces FiBuzz for 15 and others, just FYI, and the @ number needs to be cast to a string
|
|
| May 6, 2016 at 6:15 | comment | added | Phrancis | I feel a bit privileged that in many languages you can't use expressions in case statements, but also a bit sad that the Oracle SQL person got fewer bytes... | |
| May 6, 2016 at 2:30 | history | edited | Alex A. | CC BY-SA 3.0 |
Added syntax highlighting
|
| May 6, 2016 at 2:11 | history | edited | Phrancis | CC BY-SA 3.0 |
added 578 characters in body
|
| May 6, 2016 at 2:06 | comment | added | Phrancis | Sure thing I'll include the ungolfed version, it's just a while loop | |
| May 6, 2016 at 2:06 | comment | added | NoOneIsHere | Hello, and welcome to PPCG! Great answer! Can you please add an explanation? | |
| May 6, 2016 at 2:04 | review | First posts | |||
| May 6, 2016 at 2:06 | |||||
| May 6, 2016 at 2:01 | history | answered | Phrancis | CC BY-SA 3.0 |