Skip to main content
Frontend Roadmap
Instagram
17 - π§ Algorithm
Code Pattern
Strings
Roman Numerals to Integer
On this page
Previous
Breadth-First Traverse
Next
Two Pointer
Rules
π΄ Naive Approach
π’ Solution (Greedy, Without Stack)
Step-by-step logic
Time Complexity
Space Complexity