Back
Close

Of Snakes and Camels

Statement

 Goal

Each programming language has its own conventions.
Your company has just switched from one language that uses snake_case to one using camelCase.
Your boss has tasked you with converting variable names from snake_case to camelCase.

To do this, strip the variable name of all underscores (_) and capitalize the letter after each underscore.
Input
A single line containing the variableName in snake_case.
Output
A single line with the variableName converted to camelCase.
Constraints
The variableName will always be in valid snake_case. It will never be a CONSTANT or contain any uppercase letters.
It can, however, contain numbers.
Example
Input
test_case
Output
testCase

Game modes
Fastest, Shortest

Test cases
test_case Test
Input
test_case
Output
testCase

validator_case Validator
Input
validator_case
Output
validatorCase

test_2 Test
Input
test_2
Output
test2

validator_2 Validator
Input
validator_2
Output
validator2

longer_test Test
Input
longer_test
Output
longerTest

longer_validator Validator
Input
longer_validator
Output
longerValidator

number_1_in_the_middle Test
Input
number_1_in_the_middle
Output
number1InTheMiddle

number_2_in_the_validator Validator
Input
number_2_in_the_validator
Output
number2InTheValidator

underscore_at_the_end_ Test
Input
underscore_at_the_end_
Output
underscoreAtTheEnd

underscore_at_the_end_of_validator_ Validator
Input
underscore_at_the_end_of_validator_
Output
underscoreAtTheEndOfValidator

Solution language

Solution

Stub generator input