101
0/304
Loading content...
A publishing platform stores raw user-authored copy in a relational table and needs consistent title-style formatting without changing punctuation or spacing.
Table: user_content
Task: Transform each content_text value with the following rules:
Examples of boundary behavior:
Output requirements: Return columns in this exact order:
Final ordering:
Supported submission environments:
user_content:
| content_id | content_text |
|------------|---------------------------------|
| 1 | hello world of SQL |
| 2 | the QUICK-brown fox |
| 3 | modern-day DATA science |
| 4 | web-based FRONT-end development |[
{"content_id":1,"original_text":"hello world of SQL","converted_text":"Hello World Of Sql"},
{"content_id":2,"original_text":"the QUICK-brown fox","converted_text":"The Quick-Brown Fox"},
{"content_id":3,"original_text":"modern-day DATA science","converted_text":"Modern-Day Data Science"},
{"content_id":4,"original_text":"web-based FRONT-end development","converted_text":"Web-Based Front-End Development"}
]Each letter segment is independently normalized while spaces and punctuation stay unchanged.
user_content:
| content_id | content_text |
|------------|---------------------------------------|
| 10 | mIXed SPACING and-HYPHEN text |
| 11 | alpha@@BETA//gamma^^delta |[
{"content_id":10,"original_text":" mIXed SPACING and-HYPHEN text ","converted_text":" Mixed Spacing And-Hyphen Text "},
{"content_id":11,"original_text":"alpha@@BETA//gamma^^delta","converted_text":"Alpha@@Beta//Gamma^^Delta"}
]Repeated separators do not collapse. Each separator resets segment capitalization for the next letter.
user_content:
| content_id | content_text |
|------------|---------------------------------|
| 21 | pre,POST^merge\rollback |
| 22 | one-two/THREE@four,five |[
{"content_id":21,"original_text":"pre,POST^merge\rollback","converted_text":"Pre,Post^Merge\Rollback"},
{"content_id":22,"original_text":"one-two/THREE@four,five","converted_text":"One-Two/Three@Four,Five"}
]Commas, slashes, carets, and backslashes are preserved while still splitting letter segments.
Constraints