Accepted solution to problem number 13 - conversion of Roman numerals to integers
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -3,6 +3,7 @@
|
||||
#include "1-two-sum.cpp"
|
||||
#include "2-add-two-numbers.cpp"
|
||||
#include "9-palindrome-number.cpp"
|
||||
#include "13-roman-to-integer.cpp"
|
||||
|
||||
int main() {
|
||||
TwoSumSolution twoSumSolution;
|
||||
@@ -56,5 +57,8 @@ int main() {
|
||||
PalindromeNumberSolution p;
|
||||
std::cout << "Is 1 palindrome? " << p.isPalindrome(1) << std::endl;
|
||||
|
||||
RomanToIntegerSolution r;
|
||||
std::cout << "MCMXCIV = " << r.romanToInt("MCMXCIV") << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user