4

SDE Sheet - Roman Number to Integer

 8 months ago
source link: https://www.geeksforgeeks.org/videos/sde-sheet-roman-number-to-integer/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Roman Number to Integer

December 28, 2023 |90 Views
SDE Sheet - Roman Number to Integer
SDE Sheet, GFG SDE Sheet, String
 Save  Share   Like
Description
Discussion

This is a part of String section under GFG SDE Sheet. 

In this problem, we are given a string in roman no format (s)  your task is to convert it to an integer . Various symbols and their values are given below.
I 1
V 5
X 10
L 50
C 100
D 500
M 1000

Example :

Input:
s = V
Output: 5

Try it out before watching the implementation of the problem in the video. We recommend watching the video, even if you can solve the problem. You may discover something new. All the best!!!

Do check out:-
Article: https://www.geeksforgeeks.org/converting-roman-numerals-decimal-lying-1-3999/
Problem: https://www.geeksforgeeks.org/problems/roman-number-to-integer3201/1
SDE Sheet Link: https://www.geeksforgeeks.org/sde-sheet-a-complete-guide-for-sde-preparation/

Read More

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK