8 kyu
Parse nice int from char problem
9,942 of 95,180Joz
Description:
You ask a small girl,"How old are you?" She always says, "x years old", where x is a random number between 0 and 9.
Write a program that returns the girl's age (0-9) as an integer.
Assume the test input string is always a valid string. For example, the test input may be "1 year old" or "5 years old". The first character in the string is always a number.
Fundamentals
Similar Kata:
Stats:
Created | Jun 14, 2015 |
Published | Jun 14, 2015 |
Warriors Trained | 122845 |
Total Skips | 7417 |
Total Code Submissions | 185110 |
Total Times Completed | 95180 |
Java Completions | 9942 |
JavaScript Completions | 33129 |
Clojure Completions | 443 |
Python Completions | 29788 |
CoffeeScript Completions | 39 |
Ruby Completions | 1962 |
C Completions | 2578 |
PHP Completions | 2788 |
C# Completions | 4280 |
TypeScript Completions | 1813 |
Rust Completions | 1836 |
Haskell Completions | 447 |
NASM Completions | 88 |
Kotlin Completions | 2248 |
C++ Completions | 6421 |
COBOL Completions | 42 |
Scala Completions | 142 |
RISC-V Completions | 18 |
Lua Completions | 80 |
Total Stars | 411 |
% of votes with a positive feedback rating | 87% of 6411 |
Total "Very Satisfied" Votes | 5022 |
Total "Somewhat Satisfied" Votes | 1126 |
Total "Not Satisfied" Votes | 263 |