Skip to content

Conversation

@Yash-git98
Copy link

Please merge the code if you find it relevant
Please do not mark it as a spam.

@@ -0,0 +1,59 @@
package pers.jack.sort;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this package exist?

return MAX;
}

public static void COUNT_RAD(int arr[], int exp) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls follow java naming guide, wrong method naming here

Print(arr);
}

public static int getMax(int arr[]) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you dont have to make all methods static

import java.util.*;


public class Radixsort {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you have different file name than class name


public static void RADIXsort(int arr[]) {
int m = getMax(arr);
//////////////LEAST SIGNIFICANT///////////////////
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

write notes/intentions/docs on top of method

COUNT_RAD(arr, exp);
}

public static void Print(int arr[]) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use Arrays.toString() method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants