209. Dragon's Gold Counter
Easy · Array
A dragon is hoarding gold coins. Given a list of integers representing piles of gold, return the total amount of gold.
Examples
Example 1 Input: piles = [100, 500, 250, 75] Output: 925 Explanation: Sum of all piles
Constraints
- 1 ≤ len(piles) ≤ 50, 0 ≤ pile ≤ 10000