Roman To Integer - LeetCode 13 - Coding Interview Questions

preview_player
Показать описание

In this video, we'll be solving the roman to integers leetCode problem. This problem involves translating Roman numerals into integers. We'll be using the dictionary to lookup the corresponding integer value.

If you're looking for a fun and challenging leetcode problem to solve, then check out this one! You'll get to use your coding skills to solve this problem, and maybe even learn a thing or two in the process. Thanks for watching!

#codinginterview #leetcodesolution #leetcode
Рекомендации по теме
Комментарии
Автор

Loved this. Too many videos like this are excessively long and drawn out - super refreshing to see someone cut out all the bs and put together a shorter format video.

cstill
Автор

The example doesn't handle the additional constraints outlined in the problem definition. For a complete solution you would need to handle incorrect data. Handle IIII, handle invalid characters, only handle strings of length between 1 and 15. And your solution will subtract any number if it's smaller than the following number which is incorrect. There are only 6 valid situations where that is the case. I for V&X, X for L&C, C for D&M. Any other inputs are invalid roman numerals.

DougKeefe
Автор

I forgot how easy is python is to write. I'll definitely be getting back into python.

dylanthony
Автор

I had researched what this zip for loop was because I've never seen it before. I like your solution, but an explanation of the zip for loop would have been nice.

TheAbsoluteSir
Автор

I solved it within 30 min but seriously tho,
medium problems look so hard,
Even some easy problems are kinda hard

brucearmstrong