Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 625217a

Browse files
committed
Code style fixes.
1 parent caec97e commit 625217a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/algorithms/sorting/radix-sort/RadixSort.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Sort from '../Sort';
22

33
// Using charCode (a = 97, b = 98, etc), we can map characters to buckets from 0 - 25
44
const BASE_CHAR_CODE = 97;
5-
const NUMBER_OF_DIGITS = 10;
5+
const NUMBER_OF_POSSIBLE_DIGITS = 10;
66
const ENGLISH_ALPHABET_LENGTH = 26;
77

88
export default class RadixSort extends Sort {
@@ -40,7 +40,7 @@ export default class RadixSort extends Sort {
4040
// See below. These are used to determine which digit to use for bucket allocation
4141
const modded = 10 ** (index + 1);
4242
const divided = 10 ** index;
43-
const buckets = this.createBuckets(NUMBER_OF_DIGITS);
43+
const buckets = this.createBuckets(NUMBER_OF_POSSIBLE_DIGITS);
4444

4545
array.forEach((element) => {
4646
this.callbacks.visitingCallback(element);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /