JP Morgan | HireVue OA | Camel Case Machine && Decode numbers from jumbled English.

Had to complete two questions, first one being 30 mins time, and the second being 45 minutes long, and 3 minutes to explain my code afterwards for both.

The first question was to turn the lines of input, which were either a string, or a empty line (indicating between words), into a series of camelcase strings.

For example, if the testcase was :
Hello
World

My
Name
Is
Zancrow

The appropriate result would be "helloWorld myNameIsZancrow".

The second question was simply the popular leetcode question where you are given a scrambled string of digits in english, and have to convert it back to a string of digits, in ascending order. If I didn't see it on leetcode I would've been hopeless, so thanks leetcode.

Comments (5)