We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
i am python begginer so my lengthy code is
regex_pattern=r"(MMM|MM|M)?(CM|DCCC|DCC|DC|D|CD|CCC|CC|C)?(XC|LXXX|LXX|LX|L|XL|XXX|XX|X)?(IX|VIII|VI|V|IV|III|II|I)?$"
i just checked out all the number
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Validating Roman Numerals
You are viewing a single comment's thread. Return to all comments →
i am python begginer so my lengthy code is regex_pattern=r"(MMM|MM|M)?(CM|DCCC|DCC|DC|D|CD|CCC|CC|C)?(XC|LXXX|LXX|LX|L|XL|XXX|XX|X)?(IX|VIII|VI|V|IV|III|II|I)?$"
i just checked out all the number