Timeline for Swap the parity
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 4, 2017 at 8:50 | history | edited | numbermaniac | CC BY-SA 3.0 |
-3
|
May 4, 2017 at 8:43 | history | edited | numbermaniac | CC BY-SA 3.0 |
-3
|
May 4, 2017 at 8:36 | history | edited | Leaky Nun | CC BY-SA 3.0 |
added 38 characters in body
|
May 4, 2017 at 8:36 | comment | added | numbermaniac | Ah yes, so it was shorter in this case. Done, thanks! | |
May 4, 2017 at 8:36 | history | edited | numbermaniac | CC BY-SA 3.0 |
deleted 6 characters in body
|
May 4, 2017 at 8:35 | comment | added | Leaky Nun |
Use a lambda: lambda n:[n-1,n+1][n%2]
|
|
May 4, 2017 at 8:35 | history | answered | numbermaniac | CC BY-SA 3.0 |