-
Practice>Python>Regex and Parsing>Validating Credit Card Numbershackerrank.com 2019. 4. 26. 12:47728x90
Validating Credit Card Numbers
Problem Link : https://www.hackerrank.com/challenges/validating-credit-card-number/problem
Difficulty : Medium
Tip
- It's a bit difficult to solve only using regular expression
- Especially, 'NOT have or more consecutive repeated digits'
- More over, in test case 6, '-------' is given as a part of input, it should be filtered, also
- Check condition 1~4 by using regular expression
- Check condtion 5~6 by other code
Solution
728x90'hackerrank.com' 카테고리의 다른 글
Practice>Python>Regex and Parsing>Matrix Script (0) 2019.04.29 Practice>Python>Built-Ins>ginortS (0) 2019.04.29 Practice>Python>Numpy>Linear Algebra (0) 2019.04.25 Practice>Python>Numpy>Polynomials (0) 2019.04.25 Practice>Data Structures>Arrays>Arrays - DS (0) 2019.04.25