aboutsummaryrefslogtreecommitdiff
path: root/challenge-075/walt-mankowski/python/ch-1.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-075/walt-mankowski/python/ch-1.py')
-rw-r--r--challenge-075/walt-mankowski/python/ch-1.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/challenge-075/walt-mankowski/python/ch-1.py b/challenge-075/walt-mankowski/python/ch-1.py
index b070bcb102..83ed4c23f9 100644
--- a/challenge-075/walt-mankowski/python/ch-1.py
+++ b/challenge-075/walt-mankowski/python/ch-1.py
@@ -15,15 +15,15 @@ while (True):
# rotate "odometer"
cnt[-1] = 0
- j = -2
- cnt[j] += 1
- while j >= -len(cnt) and np.dot(c, cnt) > s:
- cnt[j] = 0
- j -= 1
- if j >= -len(cnt):
- cnt[j] += 1
+ i = -2
+ cnt[i] += 1
+ while i >= -len(cnt) and np.dot(c, cnt) > s:
+ cnt[i] = 0
+ i -= 1
+ if i >= -len(cnt):
+ cnt[i] += 1
- if j < -len(cnt):
+ if i < -len(cnt):
break
else:
cnt[-1] += 1