MariahsDevDiary
banner
mariahsdevdiary.bsky.social
MariahsDevDiary
@mariahsdevdiary.bsky.social
☠️ I'm unemployed | ⌚️ I have a lot of time on my hands | 👩‍💻 Wanna know what I'm coding today?

GitHub: https://github.com/mrosman7
Any advice on how to balance everything I want to do?? 🤔

What I've been trying to do is schedule LeetCode time and project time in one day but maybe I need to have a daily topic focus. MW = LeetCode and TTh = project.

Thoughts?
December 3, 2024 at 7:11 PM
here's the solution I came up with.
December 3, 2024 at 7:03 PM
if that condition is true I want to subtract the roman numeral int value before roman[s[i+1]] because roman numerals are always in decreasing order expect for a few cases (example: IV = 4, IX = 9, CM= 900, etc.)
December 3, 2024 at 7:03 PM
My first instinct to brute force this was to make a TON of if statements, which was not ideal🙃 Eventually I realized I could do the following comparison, where roman is a dict that holds roman numerals and the corresponding int:
roman[s[i]] < roman[s[i+1]]
December 3, 2024 at 7:03 PM