-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,59 @@ | |||
package pers.jack.sort; |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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[]) { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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/////////////////// |
There was a problem hiding this comment.
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[]) { |
There was a problem hiding this comment.
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
Please merge the code if you find it relevant
Please do not mark it as a spam.