employer cover photo
employer logo
employer logo

Major League Baseball (MLB)

Est-ce votre entreprise ?

Question d’entretien chez Major League Baseball (MLB)

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

Réponse à la question d'entretien

Utilisateur anonyme

30 août 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.