Java Easy to Undersatnd || Simeple O(1) Solution || Without using extra space || 3 line solution
Approach:\n\n1. First of all calculate the sum of all three elements and assign it to a variable (i.e sum).\n2. Find the max among all three element and assign 
**Approach:**\n\n1. First of all calculate the **sum** of all three elements and assign it to a variable (i.e sum).\n2. Find the **max** among all three element and assign it to a variable (i.e mv).\n3. Return the **max** of **mv** and **(sum+1)/2** using the **Math.max()** method.\n\n\n**Code:**\n\n```\nint sum = amount[0]+amount[1]+amount[2];\nint mv = Math.max(amount[0],Math.max(amount[1],amount[2]));\nreturn Math.max(mv,(sum+1)/2);\n```
['Greedy', 'Java']