Setup
Implement a function that rearranges an integer into its largest possible value. If the integer is already in its maximum possible...
For further actions, you may consider blocking this person and/or reporting abuse
JavaScript oneliners for the win!
Had a feeling it was this simple.
Why the plus though?
The argument to the unary plus operator is a string. The + is a very concise method of converting a string to a number, in this situation.
Ah, I totes prefer the readability over conciseness approach
In JS, implementing Bubble Sort just because.
dart
I'm sure this could be done shorter.
Javascript
Yet another Ruby one liner:
Also neat how it reads almost literarly, no need to explain each step in the chain!
in C++ using the standard template library:
Javascript solution for superSize :)
Scala
Haskell: