Problem link: https://www.hackerrank.com/challenges/utopian-identification-number
Problem Statement:
A new identification number is given for every Citizen of the Country Utopia and it has the following format.
1. The string must begin with between 0 and 3 (inclusive) lowercase letters.
2. Immediately following the letters, there must be a sequence of digits. The length of this segment must be between 2 and 8, both inclusive.
3. Immediately following the numbers, there must be at least 3 uppercase letters.
Your task is to find out if a given identification number is valid or not.
Continue reading
Recent Comments