Skip to main content
deleted 4 characters in body
Source Link

PowerShell : 4339

$c=[string[]][char[]]$([string[]][char[]](Read-Host)|sort;"$c"|sort)" #With spaces and symbols

Result

  .aaddeeeghhhJkklnnoooprtttwy

C# : 100

Console.Write(new string(input.ToCharArray().OrderBy(a=>char.ToLower(a)).ToArray()).Trim('.',' '));

Result

aaddeeeghhhJkklnnoooprtttwy

PowerShell : 43

$c=[string[]][char[]](Read-Host)|sort;"$c" #With spaces and symbols

Result

  .aaddeeeghhhJkklnnoooprtttwy

C# : 100

Console.Write(new string(input.ToCharArray().OrderBy(a=>char.ToLower(a)).ToArray()).Trim('.',' '));

Result

aaddeeeghhhJkklnnoooprtttwy

PowerShell : 39

$([string[]][char[]](Read-Host)|sort)" #With spaces and symbols

Result

  .aaddeeeghhhJkklnnoooprtttwy

C# : 100

Console.Write(new string(input.ToCharArray().OrderBy(a=>char.ToLower(a)).ToArray()).Trim('.',' '));

Result

aaddeeeghhhJkklnnoooprtttwy
deleted 98 characters in body
Source Link

PowerShell : 57/4343

$c=[string[]][char[]](Read-Host)|sort;"$c".Trim('.',' ')
$c=[string[]][char[]](Read-Host)|sort;"$c" #With spaces and symbols

Result

aaddeeeghhhJkklnnoooprtttwy
  .aaddeeeghhhJkklnnoooprtttwy

C# : 100

Console.Write(new string(input.ToCharArray().OrderBy(a=>char.ToLower(a)).ToArray()).Trim('.',' '));

Result

aaddeeeghhhJkklnnoooprtttwy

PowerShell : 57/43

$c=[string[]][char[]](Read-Host)|sort;"$c".Trim('.',' ')
$c=[string[]][char[]](Read-Host)|sort;"$c" #With spaces and symbols

Result

aaddeeeghhhJkklnnoooprtttwy
  .aaddeeeghhhJkklnnoooprtttwy

C# : 100

Console.Write(new string(input.ToCharArray().OrderBy(a=>char.ToLower(a)).ToArray()).Trim('.',' '));

Result

aaddeeeghhhJkklnnoooprtttwy

PowerShell : 43

$c=[string[]][char[]](Read-Host)|sort;"$c" #With spaces and symbols

Result

  .aaddeeeghhhJkklnnoooprtttwy

C# : 100

Console.Write(new string(input.ToCharArray().OrderBy(a=>char.ToLower(a)).ToArray()).Trim('.',' '));

Result

aaddeeeghhhJkklnnoooprtttwy
deleted 14 characters in body
Source Link

PowerShell : 6457/5043

$c=[string[]][char[]](Read-Host)|Sort-Object;"$c"|sort;"$c".Trim('.',' ')
$c=[string[]][char[]](Read-Host)|Sort-Object;"$c"|sort;"$c" #With spaces and symbols

Result

aaddeeeghhhJkklnnoooprtttwy
  .aaddeeeghhhJkklnnoooprtttwy

C# : 100

Console.Write(new string(input.ToCharArray().OrderBy(a=>char.ToLower(a)).ToArray()).Trim('.',' '));

Result

aaddeeeghhhJkklnnoooprtttwy

PowerShell : 64/50

$c=[string[]][char[]](Read-Host)|Sort-Object;"$c".Trim('.',' ')
$c=[string[]][char[]](Read-Host)|Sort-Object;"$c" #With spaces and symbols

Result

aaddeeeghhhJkklnnoooprtttwy
  .aaddeeeghhhJkklnnoooprtttwy

C# : 100

Console.Write(new string(input.ToCharArray().OrderBy(a=>char.ToLower(a)).ToArray()).Trim('.',' '));

Result

aaddeeeghhhJkklnnoooprtttwy

PowerShell : 57/43

$c=[string[]][char[]](Read-Host)|sort;"$c".Trim('.',' ')
$c=[string[]][char[]](Read-Host)|sort;"$c" #With spaces and symbols

Result

aaddeeeghhhJkklnnoooprtttwy
  .aaddeeeghhhJkklnnoooprtttwy

C# : 100

Console.Write(new string(input.ToCharArray().OrderBy(a=>char.ToLower(a)).ToArray()).Trim('.',' '));

Result

aaddeeeghhhJkklnnoooprtttwy
added 36 characters in body
Source Link
Loading
Fixed bug
Source Link
Loading
added 5 characters in body
Source Link
Loading
added 120 characters in body
Source Link
Loading
added 114 characters in body
Source Link
Loading
Source Link
Loading