-
Practice>Python>Regex and Parsing>Validating UIDhackerrank.com 2019. 4. 16. 13:20728x90
Validating UID
Problem Link : https://www.hackerrank.com/challenges/validating-uid/problem
Difficulty : Easy
Tip
- If we sort a given string, we can wrtie regular expression more easier
- Here is how to sort string
- l = [s[i] for i in range(len(s))]
- l.sort()
- l = ''.join(l)
- Write regular expressoin for each conditions
- Find 2 uppercases from sorted string
- Find 3 number from sorted string
- Find 10 characters which is consist of lower/upper case and numbers
Solution
728x90'hackerrank.com' 카테고리의 다른 글
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>Detect HTML Tags, Attributes and Attribute Values (0) 2019.04.15 Practice>Python>Regex and Parsing>HTML Parser - Part 2 (0) 2019.04.15 Practice>Python>Regex and Parsing>HTML Parser - Part 1 (0) 2019.04.15