Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
2-liner: regex me solution in Creative category for Greedy Number by przemyslaw.daniel
import re; P = "(.*?9|.*?8|.*?7|.*?6|.*?5|.*?4|.*?3|.*?2|.*?1|.*?0)(.{%s}.*)"
greedy_number=g=lambda s,d:(r:=re.search(P%(d-1),s).group)(1)[-1]+g(r(2),d-1)if d else ''
Jan. 13, 2022