Timeline for Random Golf of the Day #1: Shuffle an Array
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 5, 2015 at 23:35 | history | rollback | Martin Ender | Rollback to Revision 2 | |
| Feb 5, 2015 at 23:26 | history | edited | Martin Ender | CC BY-SA 3.0 | make header work with leaderboard |
| Feb 5, 2015 at 18:22 | comment | added | aditsu quit because SE is EVIL | So this code follows the spirit of the question, but not the "letter", due to internal language implementation issues. | |
| Feb 5, 2015 at 18:20 | comment | added | aditsu quit because SE is EVIL | @MartinBüttner I was about to post the same thing as Runer112; yes there might be a problem with t, I'd like to improve it in future versions.. | |
| Feb 5, 2015 at 18:18 | comment | added | Runer112 | Lists are handled like immutable objects, so duplication is just implemented as duplicating the reference. It's actually the t that kills it, as it can't mutate the list and now must create a copy. | |
| Feb 5, 2015 at 17:58 | comment | added | Martin Ender | As mentioned in the comments, I'm afraid this is invalid. At the very least _ is O(N) (inside an O(N) loop). Unfortunately, I don't see a way to work around that in CJam. | |
| Feb 3, 2015 at 18:39 | history | edited | aditsu quit because SE is EVIL | CC BY-SA 3.0 | added 85 characters in body |
| Feb 3, 2015 at 18:09 | history | answered | aditsu quit because SE is EVIL | CC BY-SA 3.0 |