Skip to content

Latest commit

 

History

History
 
 

detect-floating-point-number

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Detect Floating Point Number

https://www.hackerrank.com/challenges/introduction-to-regex

Problem

You are given a string N. Your task is to verify that N is a floating point number.

Input Format

The first line contains an integer T, the number of test cases. The next T line(s) contains a string N.

Output Format

Output True or False for each test case.

Sample Input 0

4
4.0O0
-1.00
+4.54
SomeRandomStuff

Sample Output 0

False
True
True
False

My Solution