-
Practice>Python>Regex and Parsing>Re.findall() & Re.finditer()hackerrank.com 2019. 4. 3. 12:46728x90
Re.findall() & Re.finditer()
Problem Link : https://www.hackerrank.com/challenges/re-findall-re-finditer/problem
Difficulty : Easy, this is not easy, it should be Medium at lest
Tip
- Problem is not easy, and quite tricky
- We are going to approach a bit different, unlike discussion in the problem.
- Cs is consonants
- Vs is vowels
- Pattern is like [Cs][Vs][Vs]+[Cs]
- Find this pattern first
- Remove Cs in both beginning, and ending
- Print only vowels
- And replace found vowel from string
- We repeat it until, we don't find the pattern
Solution
728x90'hackerrank.com' 카테고리의 다른 글
Practice>Python>Regex and Parsing>Regex Substitution (0) 2019.04.09 Practice>Python>Regex and Parsing>Re.start() & Re.end() (0) 2019.04.04 Practice>Python>Regex and Parsing>Group(), Groups() & Groupdict() (0) 2019.03.29 Practice>Python>Regex and Parsing>Re.split() (0) 2019.03.29 Practice>Python>Numpy>Concatenate (0) 2019.03.28