5 kyu
Convert PascalCase string into snake_case
1,434 of 16,100OlgaGr
Description:
Complete the function/method so that it takes a PascalCase
string and returns the string in snake_case
notation. Lowercase characters can be numbers. If the method gets a number as input, it should return a string.
Examples
"TestController" --> "test_controller"
"MoviesAndBooks" --> "movies_and_books"
"App7Test" --> "app7_test"
1 --> "1"
Strings
Algorithms
Regular Expressions
Similar Kata:
Stats:
Created | Dec 1, 2013 |
Published | Dec 1, 2013 |
Warriors Trained | 26201 |
Total Skips | 3710 |
Total Code Submissions | 93110 |
Total Times Completed | 16100 |
Ruby Completions | 1434 |
JavaScript Completions | 5322 |
CoffeeScript Completions | 118 |
Python Completions | 7741 |
C# Completions | 1727 |
COBOL Completions | 7 |
Total Stars | 309 |
% of votes with a positive feedback rating | 87% of 1392 |
Total "Very Satisfied" Votes | 1087 |
Total "Somewhat Satisfied" Votes | 250 |
Total "Not Satisfied" Votes | 55 |