New answers tagged

0

PHP, 110 bytes function f($a,$b,$c){while($a[$c]){$w=substr($a,0,$c).'.'.substr($a,$c);echo $w.$b,"\n";f($w,$b,$c+2);$c++;}}; Try it online! Human readable version <?php function f($address, $suffix, $i) { while ($address[$i]) { $str = substr($address, 0, $i) . '.' . substr($address, $i); echo $str . $suffix, "\n";...


Top 50 recent answers are included