Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def bar1(tocarry, toindex, fromindex, j, stop, n, replacement):
- while fromindex[j] < stop:
- if replacement:
- for k in range(j + 1, n):
- fromindex[k] = fromindex[j]
- else:
- for k in range(j + 1, n):
- fromindex[k] = fromindex[j] + k - j
- if (j + 1) == n:
- for k in range(n):
- tocarry[k][toindex[k]] = fromindex[k]
- toindex[k] += 1
- else:
- bar1(tocarry, toindex, fromindex, j + 1, stop, n, replacement)
- fromindex[j] += 1
Add Comment
Please, Sign In to add comment