#Developers
1 messages · Page 1 of 1 (latest)
anybody that plays on leetcode? 
@tough pagoda will love this channel 🤓
Don't be shy, ping the rest of the dev team too 
@late sequoia channel for you 
anybody know how to convert roman numbers to integers 
You can convert Roman numerals to integers by iterating through the string of Roman numerals and adding or subtracting values based on their placement.
roman_values = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000}
total = 0
for i in range(len(roman)):
if i > 0 and roman_values[roman[i]] > roman_values[roman[i - 1]]:
total += roman_values[roman[i]] - 2 * roman_values[roman[i - 1]]
else:
total += roman_values[roman[i]]
return total
# look here
print(roman_to_integer("MCMXCIV")) # i guess its gonna be 1994
eh
python is better for these
might move on to python after this, and then javascript if i ever get there
well its gonna take some time
i know 
Everytime I have to work with JS I wanna die 
everytime i code i wanna die
I think I'll love this as well
Dilligaf
Meanie
anyone know anyone who's good at coding websites/bots or even apps ?
bit of a needle in a hay stack attempt lol
Hey fellow developers, just wanted to remind you that this year’s Advent of Code has started (I’m 5 days late lol). For those who are unfamiliar with it, it’s quite a nice (and not boring) way to test your knowledge in any programming language
im quite good at websites
I am late but hi