employer cover photo
employer logo
employer logo

Major League Baseball (MLB)

Ist dies Ihr Unternehmen?

Frage im Vorstellungsgespräch bei Major League Baseball (MLB)

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

Antwort im Vorstellungsgespräch

Anonym

30. Aug. 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.