Timeline for Compute the kangaroo sequence
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 17, 2020 at 9:04 | history | edited | Community Bot |
Commonmark migration
|
|
| Oct 18, 2016 at 14:45 | comment | added | mbomb007 | Let us continue this discussion in chat. | |
| Oct 18, 2016 at 14:24 | comment | added | Erik the Outgolfer | @mbomb007 I didn't think there would have been be rage by 2 people about this minor thing :P I have changed it now. | |
| Oct 18, 2016 at 14:21 | comment | added | mbomb007 |
I mean nothing about the bounty. The math formula used in this answer. We write "minus 1" as - 1.
|
|
| Oct 18, 2016 at 14:01 | history | edited | Erik the Outgolfer | CC BY-SA 3.0 |
readable
|
| Oct 18, 2016 at 14:01 | comment | added | Erik the Outgolfer |
@mbomb007 Oh you mean the very recently added bounty? If so, I changed it. But, I might raise some arguments then... I could have also done -~(x*x-1<<~-x) for the record, but -1 still exists, so I don't like to blend code...
|
|
| Oct 18, 2016 at 14:00 | comment | added | mbomb007 | IMHO, It's more readable, and it looks more like the mathematical formula used. | |
| Oct 18, 2016 at 13:49 | comment | added | Erik the Outgolfer |
@mbomb007 I know, but the code Jonathan Allan gave me used ~-x, so I decided to leave it unchanged. Well, it seems everyone prefers x-1, though (Dennis also said that exact thing).
|
|
| Oct 18, 2016 at 13:45 | comment | added | mbomb007 |
You don't need ~-x. You can use x-1 as well (not any shorter), since subtraction has a higher precedence than shifting.
|
|
| Oct 16, 2016 at 6:00 | history | edited | Erik the Outgolfer | CC BY-SA 3.0 |
BITWISE
|
| Oct 16, 2016 at 5:46 | history | answered | Erik the Outgolfer | CC BY-SA 3.0 |