update Readme files
This commit is contained in:
@@ -48,3 +48,9 @@ To avoid this unacceptable situation, the Elves would instead like to know the t
|
||||
In the example above, the top three Elves are the fourth Elf (with 24000 Calories), then the third Elf (with 11000 Calories), then the fifth Elf (with 10000 Calories). The sum of the Calories carried by these three elves is 45000.
|
||||
|
||||
Find the top three Elves carrying the most Calories. How many Calories are those Elves carrying in total?
|
||||
|
||||
|
||||
--- Idea ---
|
||||
1. Calculate Each Elf's Total: For each Elf, the script sums up their calorie counts.
|
||||
2. Identify Top Three: The script then sorts these sums to find the top three highest values.
|
||||
3. Calculate Total for Top Three: Finally, it sums the calorie counts of these top three Elves.
|
||||
Reference in New Issue
Block a user