($",$n,$_)="}|1{";while($n++<$_[-1]){$_.=1;/^(1{@_})*$/ or$n=0}length()-pop |
But the non-regex ideas are interesting to me, as I wasn't sure it was easily possible without the regex logic.
blokhead
In reply to Re^3: Golf: Buying with exact change
by blokhead
in thread Golf: Buying with exact change
by blokhead
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |