(int[] arr)
| 25 | } |
| 26 | |
| 27 | private int getMaxValue(int[] arr) { |
| 28 | int maxValue = arr[0]; |
| 29 | for (int value : arr) { |
| 30 | if (maxValue < value) { |
| 31 | maxValue = value; |
| 32 | } |
| 33 | } |
| 34 | return maxValue; |
| 35 | } |
| 36 | |
| 37 | protected int getNumLenght(long num) { |
| 38 | if (num == 0) { |