in reply to Re^2: Golf: Buying with exact change
in thread Golf: Buying with exact change
| ($",$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
|
|---|