Problems > snake_case to camelCase

snake_case to camelCase

Difficulty: 900 2000 ms 128 MB

strings

Convert a snake_case identifier to camelCase: drop the underscores and capitalize each following fragment's first letter.

Input: one line with a snake_case identifier (lowercase fragments joined by single underscores).

Output: the camelCase identifier.

Constraints:

  • 1 ≤ length ≤ 100

Sample Tests

Input 1
hello_world_now
Output 1
helloWorldNow
Input 2
solo
Output 2
solo

Read the Editorial

Discussion (opens after you solve — no spoilers before)

No comments yet.

Submit Your Solution

Log in or create a free account to run and submit code.