Problems > snake_case to camelCase > Editorial

snake_case to camelCase — Solution & Editorial

Back to the Problem

Split on underscores; keep the first fragment, capitalize the rest, join.

Complexity: O(length)