• + 0 comments

    Here is PHP solution!

    n-1; b- current = (b) ? b; current * arr[] = $initial;

    for (i <i++) { arr); count-1; arr[diff; new; } arr);