(int arr[], int n)
| 29 | } |
| 30 | |
| 31 | static String getDistinct(int arr[], int n) { |
| 32 | Arrays.sort(arr); |
| 33 | String res = ""; |
| 34 | |
| 35 | for (int i = 0; i < n; i++) { |
| 36 | while (i < n - 1 && arr[i] == arr[i + 1]) |
| 37 | i++; |
| 38 | |
| 39 | res = res + Integer.toString(arr[i]); |
| 40 | } |
| 41 | return res; |
| 42 | } |
| 43 | |
| 44 | public static void main(String[] args) { |
| 45 | // TODO Auto-generated method stub |
nothing calls this directly
no outgoing calls
no test coverage detected