Pergunta de entrevista da empresa Major League Baseball (MLB)

Given a string - write a function to sort its characters alphabetically

Resposta da entrevista

Sigiloso

30 de ago. de 2017

Convert each character to its integer representation (see ASCII table for more details) and using a double nested loop - for each character of the string compare its integer value with the next character and so on.