-
Practice>Python>Regex and Parsing>Detect Floating Point Numberhackerrank.com 2019. 4. 22. 21:48728x90
Detect Floating Point Number
Problem Link : https://www.hackerrank.com/challenges/introduction-to-regex/problem
Difficulty : Easy
Tip
- We can solve in two ways
- One is to solve by using regular expression, by detecting -, + and .
- The other is a way to utilize int(), float(), let's try this way
- We can create int() or float() from string
- If the given string is not proper, it will raise exception
- Use exception to print True or False, properly
Solution
728x90'hackerrank.com' 카테고리의 다른 글
Practice>Python>Closures and Decorators>Decorators 2 - Name Directory (0) 2019.04.23 Practice>Python>Closures and Decorators>Standardize Mobile Number Using Decorators (0) 2019.04.23 Practice>Python>XML>XML2 - Find the Maximum Depth (0) 2019.04.19 Practice>Python>XML>XML 1 - Find the Score (0) 2019.04.17 Practice>Python>Regex and Parsing>Validating UID (0) 2019.04.16