In this article, we have explained two efficient approaches / algorithms to convert Roman number to Integer. We have presented the implementation as well.
Table of contents:
Introduction to Roman SystemApproach 1: Using switch statementsApproach 2: Using Hash Map
Prerequisite:
Switch StatementsHash Map / Hash TableLet us get started with Roman to Integer. This is similar to Leetcode Problem 13. Roman to Integer.
Introduction to Roman System
The roman number system consists of 7 main symb...
Published on October 31, 2021 04:33