Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/hustcc/JS-Sorting-Algorithm
/ getMaxDigit
Method
getMaxDigit
src/java/main/RadixSort.java:22–25 ·
view source on GitHub ↗
获取最高位数
(int[] arr)
Source
from the content-addressed store, hash-verified
20
* 获取最高位数
21
*/
22
private
int
getMaxDigit(
int
[] arr) {
23
int
maxValue = getMaxValue(arr);
24
return
getNumLenght(maxValue);
25
}
26
27
private
int
getMaxValue(
int
[] arr) {
28
int
maxValue = arr[0];
Callers
1
sort
Method · 0.95
Calls
2
getMaxValue
Method · 0.95
getNumLenght
Method · 0.95
Tested by
no test coverage detected