We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e30477 commit f14eb70Copy full SHA for f14eb70
real_interview_questions/Google/sort_a_partially_sorted_array.md
@@ -75,14 +75,14 @@ def sort_partial_sorted_28b(nums):
75
for num in nums:
76
if (num & mask) != curr_28b: # start sort
77
for bucket, occurance in enumerate(buckets):
78
- for o in range(occurance):
+ for _ in range(occurance):
79
results.append(curr_28b | bucket)
80
curr_28b = num & mask # set to next 28 bit group
81
buckets = [0] * 16 # reset
82
# add to buckets
83
buckets[num & 15] += 1
84
85
86
87
return results
88
```
0 commit comments