Accepted solution to problem number 13 - conversion of Roman numerals to integers

This commit is contained in:
2025-12-07 23:54:27 +01:00
parent 8e9b1f0fa1
commit 20053ef329
2 changed files with 68 additions and 0 deletions

View File

@@ -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;
}