Python/Problems: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

13 May 2025

  • curprev 21:3221:32, 13 May 2025Kenneth talk contribs 1,420 bytes +1,420 Created page with "== Roman Numeral to Integer == My favorite solution I found online: <ref>https://leetcode.com/problems/roman-to-integer/solutions/264743/clean-python-beats-99-78/</ref> <pre> class Solution: def romanToInt(self, s: str) -> int: translations = { "I": 1, "V": 5, "X": 10, "L": 50, "C": 100, "D": 500, "M": 1000 } number = 0 s = s.replace("IV", "IIII").repl..."