Convert Backticked Identifiers to Camel Case
Updated
Problem statement
Delimiter code point 96 encloses space-separated lowercase snake_case identifiers or UPPER_CASE constants. Convert eligible lowercase identifiers inside delimiters to camelCase. Preserve uppercase constants and all outside text.
Function
convertBacktickedIdentifiers(docstring: String) → StringExamples
Example 1
docstring = "Use `foo_bar MAX_VALUE` now"return = "Use `fooBar MAX_VALUE` now"Only eligible identifiers inside the delimited region change.
Example 2
docstring = "`one_two three` outside_name"return = "`oneTwo three` outside_name"Only eligible identifiers inside the delimited region change.
Constraints
0 <= docstring.length <= 100000- Delimiters are balanced.
More ZipRecruiter Online Assessment questions
- Four-Level Banking System with Scheduled PaymentsOA · Seen Oct 2026
- Count Three-Digit Numbers with Distinct DigitsOA · Seen Oct 2024
- Longest Frequency-Bounded SubarrayOA · Seen Oct 2024
- Minimum Changes to Draw a YOA · Seen Oct 2024
- Apply Binary State OperationsOA · Seen Sep 2024
- Simulate Orchard Rot SpreadOA · Seen Sep 2024
- Compare Odd- and Even-Index SumsOA · Seen Sep 2024
- Coordinate Removals with Column GravityOA · Seen Sep 2024
- Lexicographically Smallest End ReversalOA · Seen Sep 2024
- Recursively Expanded Shell Command CountsOA · Seen Sep 2024
Similar questions at other companies
- Parse Router LogsIntuit · OAIntuit interview questions
- Simplify a Quadratic ExpressionOpenAI · OAOpenAI interview questions
- DNA Sequence MatchSpaceX · OASpaceX interview questions
- Correct Apartment Bedroom CountsRamp · OARamp interview questions
- Remove CSS Comments and Find Hex ColorsAdobe · OAAdobe interview questions
- Create New VersionCisco · OACisco interview questions
- Order LayoutAmazon · OA
- Validate and Parse HTTP RequestsIBM · OAIBM interview questions
- Simplified XML ValidatorAirbnb · OAAirbnb interview questions
- Hidden ArtifactsIMC Trading · OAIMC Trading interview questions