Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added radix sort to your sorts in src/sortingandsearching #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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