Timeline for Python greed roll
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 29, 2014 at 20:04 | comment | added | Santiago |
The collections.Counter is particularly designed for this. It's probably optimized for these matters, but I haven't looked too much under the hood of python to explain why or to be 100% sure of that.
|
|
Dec 29, 2014 at 20:03 | comment | added | dabadaba | Can you explain why? | |
Dec 29, 2014 at 20:03 | comment | added | Santiago | I've just updated the answer, there's an even better approach :) | |
Dec 29, 2014 at 19:59 | comment | added | dabadaba | In the last paragraph I explained why I sorted it and I also asked about my guess. | |
Dec 29, 2014 at 19:59 | history | answered | Santiago | CC BY-SA 3.0 |