Code:
Problem description:
Hey, was wondering if there was a code that would help find the greatest value out of a bundle of mobs, objs, etc.
Like if I was looking for someone who had the most kills in an arena. How would I go about it?
ID:2423533
Jan 20 2019, 4:22 pm
|
|
In response to Kaiochao
|
|
Thanks! This really helped a lot. Appreciate it.
|
Slightly more efficient because it doesn't read value more than once per thing:
Or you could sort things in the list by value. There are libraries for list sorting.