java fast solution
\nPLEASE UPVOTE IF YOU LIKE.\n\n        int sum = a[0] + a[1] + a[2];\n        int max = Math.max(a[0], Math.max(a[1], a[2]));\n        \n        if(2*max >= su
```\nPLEASE UPVOTE IF YOU LIKE.\n```\n        int sum = a[0] + a[1] + a[2];\n        int max = Math.max(a[0], Math.max(a[1], a[2]));\n        \n        if(2*max >= sum) return max;\n        if(sum % 2 == 0) return sum / 2;\n        \n        return (sum / 2) + 1;
['Array', 'Java']