I need help with arrays! :/
Wo1ves1n0 (5)

So I've got a code where the player inputs the amount of numbers for the list then will have to input the numbers for list they decided it to be. However, i manage to get the sum to add the total. It's just finding the lowest number to the largest number And I can't find anything about it.

You are viewing a single comment. View All
Answered by themaka (181) [earned 5 cycles]
View Answer
TheDrone7 (665)

@SPQR I know, he hadn't posted the code when I replied, so I automatically assumed that it was python code. But the technique I offered wasn't only limited to python, he could still sort the list and get the first and last element from the sorted array or vector.