Activity for daviewalesâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #291091 |
Post edited: |
— | 6 months ago |
Edit | Post #291091 |
Post edited: |
— | 9 months ago |
Edit | Post #291091 |
Post edited: |
— | 9 months ago |
Edit | Post #291091 | Initial revision | — | 9 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) |
— | 9 months ago |