Skip to content

Commit f14eb70

Browse files
author
Joseph Luce
authored
Update sort_a_partially_sorted_array.md
1 parent 3e30477 commit f14eb70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: real_interview_questions/Google/sort_a_partially_sorted_array.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ def sort_partial_sorted_28b(nums):
7575
for num in nums:
7676
if (num & mask) != curr_28b: # start sort
7777
for bucket, occurance in enumerate(buckets):
78-
for o in range(occurance):
78+
for _ in range(occurance):
7979
results.append(curr_28b | bucket)
8080
curr_28b = num & mask # set to next 28 bit group
8181
buckets = [0] * 16 # reset
8282
# add to buckets
8383
buckets[num & 15] += 1
8484
for bucket, occurance in enumerate(buckets):
85-
for o in range(occurance):
85+
for _ in range(occurance):
8686
results.append(curr_28b | bucket)
8787
return results
8888
```

0 commit comments

Comments
 (0)