Activity for daviewalesâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #291091 |
Post edited: |
— | 5 months ago |
Edit | Post #291091 |
Post edited: |
— | 8 months ago |
Edit | Post #291091 |
Post edited: |
— | 8 months ago |
Edit | Post #291091 | Initial revision | — | 8 months ago |
Answer | — |
A: The 50 substrings that validate any string of Roman numerals Python, 344 bytes 534 bytes: This is not golfed in any way. But it's the current winner! ``` python def validateromannumeral(candidate): invalidstrings = ["CCCC", "CCD", "CCM", "CDC", "CMC", "CMD", "CMM", "DCD", "DCM", "DD", "DM", "IC", "ID", "IIII", "IIV", "IIX", "IL", "IM", "IVI", "I... (more) |
— | 8 months ago |