String 6: Roman number to integer | Must Do Coding Questions | GeeksForGeeks

preview_player
Показать описание
This video contains Must Do Coding Questions for Companies like Amazon, Microsoft, Adobe, …
from geeksforgeeks platform.

website link:

Topics covered in this video series are:
1.Arrays
2.String
3.Linked List
4.Stack and Queue
5.Tree and BST
6.Heap
7.Recursion
8.Hashing
9.Graph
10.Greedy
11.Dynamic Programming
12.Divide and Conquer
13.Backtracking
14.Bit Magic

String:
6. Roman number to integer:
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 1:

Input: s = V Output: 5

Example 2:

Input: s = III  Output: 3

Code Link:

Complete Playlist:

Intro Music :
Рекомендации по теме
welcome to shbcf.ru