Timeline for Detect heat waves
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 30, 2023 at 23:30 | comment | added | Deadcode |
-1 byte: ->a{b=1;a.any?{|r|1>b=[b*3,1,b*2][5<=>r/5]%72}}
|
|
Jun 15, 2018 at 22:06 | comment | added | Roland Schmitz | Thanks for the idea with the any{} operation, which gave me -16 Bytes in the Kotlin solution | |
Jun 15, 2018 at 6:18 | history | edited | G B | CC BY-SA 4.0 |
added 49 characters in body
|
Jun 15, 2018 at 6:14 | comment | added | Roland Schmitz |
You could save 2 more bytes by rearranging and combining the expressions of the inner lambda: ->a{b=1;a.any?{|r|1>b=[b*2,1,b*6][5<=>r/5]%864}}
|
|
Jun 15, 2018 at 5:34 | comment | added | Roland Schmitz | This is a great solution, especially the part with the spaceship and the negative array index. | |
Jun 12, 2018 at 13:56 | history | answered | G B | CC BY-SA 4.0 |