• Member for 10 years, 1 month
  • Last seen more than a month ago
  • Netherlands
Is string X a subsequence of string Y?
6 votes

Python (48 chars) import re;s=lambda x,'.*'.join(x),y) Same approach as Howard's Ruby answer. Too bad about Python's need to import the regex package and its "verbose" lambda. :-)

View answer
Convert number to comma separated number
1 votes

Python 2.7: 29 characters A bit late to the party, but I just read about this new feature in 2.7 and figured this still deserves to be here: f=lambda(n):'{:,f}'.format(n) Used by calling f(-...

View answer