Algo-Tree is a collection of Algorithms and data structures which are fundamentals to efficient code and good software design. Creating and designing excellent algorithms is required for being an exemplary programmer. It contains solutions in various languages such as C++, Python and Java.
MIT License
363
stars
618
forks
source link
Conversion of Roman Numerals String to Decimal Integer. #1252
This is String problem for conversion of String cosisteing of Roman Numerals to Int.
A string in roman number format is to be converted to an integer . Using the following symbols.
I->1
V->5
X->10
L->50
C->100
D->500
M->1000.
Solution Approach.
Convert the Roman Numeral string into Roman Symbols (character).
Map each symbol of Roman Numerals with its value.
Take symbol one by one from starting from index 0:
– If current value of symbol is greater than or equal to the value of next symbol --> Add this value to the total.
– else --> Subtract this value by adding the value of next symbol to the running total.
Using Java , I would like to contibute to this problem algortihm code under GSSOC ' 21
I request mentors to assign me this issue for GSSOC '21.
@dheerajkotwani @tarun26091999 @anubhavitis @dheerajkotwani @rudrakshi99 @plazzy99 @nakul-19
This is String problem for conversion of String cosisteing of Roman Numerals to Int. A string in roman number format is to be converted to an integer . Using the following symbols. I->1 V->5 X->10 L->50 C->100 D->500 M->1000.
Solution Approach.
Using Java , I would like to contibute to this problem algortihm code under GSSOC ' 21 I request mentors to assign me this issue for GSSOC '21. @dheerajkotwani @tarun26091999 @anubhavitis @dheerajkotwani @rudrakshi99 @plazzy99 @nakul-19