Movatterモバイル変換


[0]ホーム

URL:


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

Commit625217a

Browse files
committed
Code style fixes.
1 parentcaec97e commit625217a

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
constBASE_CHAR_CODE=97;
5-
constNUMBER_OF_DIGITS=10;
5+
constNUMBER_OF_POSSIBLE_DIGITS=10;
66
constENGLISH_ALPHABET_LENGTH=26;
77

88
exportdefaultclassRadixSortextendsSort{
@@ -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
constmodded=10**(index+1);
4242
constdivided=10**index;
43-
constbuckets=this.createBuckets(NUMBER_OF_DIGITS);
43+
constbuckets=this.createBuckets(NUMBER_OF_POSSIBLE_DIGITS);
4444

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp