5 kyu
Convert PascalCase string into snake_case
1,430 of 15,882OlgaGr
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 | 25879 |
Total Skips | 3692 |
Total Code Submissions | 92479 |
Total Times Completed | 15882 |
Ruby Completions | 1430 |
JavaScript Completions | 5236 |
CoffeeScript Completions | 118 |
Python Completions | 7629 |
C# Completions | 1706 |
COBOL Completions | 6 |
Total Stars | 308 |
% of votes with a positive feedback rating | 87% of 1374 |
Total "Very Satisfied" Votes | 1072 |
Total "Somewhat Satisfied" Votes | 247 |
Total "Not Satisfied" Votes | 55 |