Roman to Integer

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 Table

Let 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...

 •  0 comments  •  flag
Share on Twitter
Published on October 31, 2021 04:33
No comments have been added yet.