8 kyu
Is it a number?
2,990 of 16,663provector
Description:
Given a string s, write a method (function) that will return true if its a valid single integer or floating number or false if its not.
Valid examples, should return true:
isDigit("3")
isDigit(" 3 ")
isDigit("-3.23")
should return false:
isDigit("3-4")
isDigit(" 3 5")
isDigit("3 5")
isDigit("zero")
Fundamentals
Similar Kata:
Stats:
Created | Apr 16, 2016 |
Published | Apr 16, 2016 |
Warriors Trained | 33880 |
Total Skips | 2021 |
Total Code Submissions | 132380 |
Total Times Completed | 16663 |
Java Completions | 2990 |
Python Completions | 7063 |
JavaScript Completions | 5287 |
C# Completions | 1105 |
C++ Completions | 630 |
Scala Completions | 18 |
Total Stars | 349 |
% of votes with a positive feedback rating | 84% of 2134 |
Total "Very Satisfied" Votes | 1620 |
Total "Somewhat Satisfied" Votes | 358 |
Total "Not Satisfied" Votes | 156 |