InterviewDB Experience

Snake Case to Camel Case: Convert Identifiers Between Naming Conventions

Interview Experience

Round 1 - Coding / OA Problem Write a function that converts a snake_case string to camelCase and another that goes the reverse direction. Handle leading/trailing underscores and consecutive underscores gracefully. Example Follow-ups How do you handle acronyms like HTMLParser or URLEncoder in camel-to-snake conversion? Extend your solution to also support PascalCase as a third convention. How would you apply these conversions recursively to all keys in a nested JSON object? What edge cases arise…

Full Details

🔒

Unlock all Ramp questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a candidate experience report from a ramp interview during the oa round.

It covers the following topics: Coding, Oa, Strings .