Timeline for Find max number you can create from an array of numbers
Current License: CC BY-SA 4.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 4, 2019 at 6:03 | history | edited | AlexV | CC BY-SA 4.0 |
Add further test cases and note on lexicographical sorting
|
Jul 4, 2019 at 5:45 | comment | added | AlexV | @PeterCordes: Reworded that section. | |
Jul 4, 2019 at 5:44 | history | edited | AlexV | CC BY-SA 4.0 |
Clarified part on string representation
|
Jul 4, 2019 at 5:05 | comment | added | Peter Cordes |
Already in base 10?? Huh? The OP has binary integers, not strings. Your own solution uses str(number) so you're already actively / explicitly converting from number to ASCII decimal string. Maybe what you meant to say is that Python has an efficient int->string function built-in which happens to use base 10 :P.
|
|
Jul 3, 2019 at 20:51 | comment | added | AlexV | @EricDuminil: I haven't either. But it firmly stuck somewhere in the back of my head that it existed. | |
Jul 3, 2019 at 20:46 | comment | added | Eric Duminil |
Perfect. I haven't seen an example for which cmp= is needed in a long time. Too bad it's been removed.
|
|
Jul 3, 2019 at 20:44 | history | edited | AlexV | CC BY-SA 4.0 |
Added implementation of the alternative task interpretation with decorator alternative
|
Jul 3, 2019 at 20:39 | comment | added | AlexV | @EricDuminil: I also included my take on that "alternative" (maybe correct) interpretation. | |
Jul 3, 2019 at 20:38 | history | edited | AlexV | CC BY-SA 4.0 |
Added implementation of the alternative task interpretation
|
Jul 3, 2019 at 20:25 | comment | added | AlexV | @EricDuminil: I specifically ask the OP for this aspect, and he affirmed it. So technically at the time of writing the answer was valid. | |
Jul 3, 2019 at 9:23 | history | edited | AlexV | CC BY-SA 4.0 |
Add Counter-based implementation
|
Jul 3, 2019 at 9:12 | history | edited | AlexV | CC BY-SA 4.0 |
added 60 characters in body
|
Jul 3, 2019 at 9:10 | comment | added | John K. |
Consider initializing (if necessary) the dict using dict comprehension { str(x) : x for x in range(10)} .
|
|
Jul 3, 2019 at 9:02 | history | answered | AlexV | CC BY-SA 4.0 |