HF RL Explorer

Task: Add Spaces Before Capital Letters

Task: Add Spaces Before Capital Letters: a task in Terminal-Lego-15k (Harbor dataset). Write a program that takes a camelCase or PascalCase string and inserts a space before each capital letter (except the first character of the string). The program should read input from a file and write the…

The task

Write a program that takes a camelCase or PascalCase string and inserts a space before each capital letter (except the first character of the string). The program should read input from a file and write the processed output to a file.

Part of PrimeIntellect/Terminal-Lego-15k.