Skip to content

Instantly share code, notes, and snippets.

@kozak-iz-kh
kozak-iz-kh / RomanToInteger.js
Created December 24, 2018 06:40
Task for JavaScript developer vacancy by Ihor Tsarenko
https://leetcode.com/problems/roman-to-integer/
Here is my solution:
const romanToInt = str => {
const VALUES = {
M: 1000,
D: 500,
C: 100,
L: 50,